MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / persistEndFlag

Function persistEndFlag

packages/typesense/src/utils/shared.ts:94–106  ·  view source on GitHub ↗
(
  searchSettings: SerializedSearchSettings,
  accountId: string
)

Source from the content-addressed store, hash-verified

92
93/** persist timestamp as flag for next sync job */
94export async function persistEndFlag(
95 searchSettings: SerializedSearchSettings,
96 accountId: string
97) {
98 searchSettings.lastSync = new Date().getTime();
99 // persist
100 await prisma.accounts.update({
101 where: { id: accountId },
102 data: {
103 searchSettings: JSON.stringify(searchSettings),
104 },
105 });
106}
107
108export async function pushToTypesense({
109 threads,

Callers 2

syncFunction · 0.90
setupFunction · 0.90

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected