diff --git a/packages/studiocms_core/src/sdk-utils/post/postDatabaseEntry.ts b/packages/studiocms_core/src/sdk-utils/post/postDatabaseEntry.ts index d11bffbf..7dda836a 100644 --- a/packages/studiocms_core/src/sdk-utils/post/postDatabaseEntry.ts +++ b/packages/studiocms_core/src/sdk-utils/post/postDatabaseEntry.ts @@ -154,9 +154,9 @@ export const postDatabaseEntry: STUDIOCMS_SDK['POST']['databaseEntry'] = { userId: diffData.userId, pageId: diffData.pageId, diff: diffData.diff || '', - timestamp: new Date(), + timestamp: diffData.timestamp || new Date(), pageContentStart: diffData.pageContentStart, - pageMetaData: JSON.stringify(diffData.pageMetaData as string), + pageMetaData: JSON.stringify(diffData.pageMetaData || {}), }) .returning(); },