update updatedAt when the document is updated