We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fab503 commit 104a862Copy full SHA for 104a862
1 file changed
apps/roam/src/utils/syncDgNodesToSupabase.ts
@@ -422,7 +422,8 @@ export const createOrUpdateDiscourseEmbedding = async (showToast = false) => {
422
}
423
claimed = true;
424
const allUsers = await getAllUsers();
425
- const time = (lastUpdateTime || DEFAULT_TIME).toISOString();
+ const sinceTime = (lastUpdateTime || DEFAULT_TIME).valueOf() - 1000; // add a one-second buffer
426
+ const time = new Date(sinceTime).toISOString();
427
const { allDgNodeTypes, dgNodeTypesWithSettings } = getDgNodeTypes();
428
429
const allNodeInstances = await getAllDiscourseNodesSince(
0 commit comments