From b3cdc726bc33ff763bbef17e1040a3276de0f10b Mon Sep 17 00:00:00 2001 From: rayangler <27821750+rayangler@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:13:52 -0400 Subject: [PATCH] DOP-4096: Create new timestamp when inserting pages and metadata --- modules/persistence/src/services/connector/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/persistence/src/services/connector/index.ts b/modules/persistence/src/services/connector/index.ts index 2b1dfe888..e06c7890f 100644 --- a/modules/persistence/src/services/connector/index.ts +++ b/modules/persistence/src/services/connector/index.ts @@ -47,7 +47,7 @@ export const insert = async (docs: any[], collection: string, buildId: ObjectId, docs.map((d) => ({ ...d, build_id: buildId, - created_at: buildId.getTimestamp(), + created_at: new Date(), })), { ordered: false } );