MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / mark

Function mark

apps/cloud/src/auth/workos-mirror-store.ts:888–895  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

886 deletedAt: Date,
887 ): Promise<boolean> => {
888 const mark = async () => {
889 const marked = await db
890 .update(organizations)
891 .set({ deletedAt })
892 .where(and(eq(organizations.id, organizationId), isNull(organizations.deletedAt)))
893 .returning({ id: organizations.id });
894 return marked.length > 0;
895 };
896 if (await mark()) return true;
897 const held = await db
898 .select({ id: organizations.id })

Callers 1

makeWritesFunction · 0.85

Calls 2

setMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected