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

Function ensureAccount

apps/cloud/src/auth/workos-mirror-store.ts:601–602  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

599// it wrote a row; the public shape and the transactions translate that.
600const makeWrites = (db: DrizzleDb) => {
601 const ensureAccount = (id: string) =>
602 db.insert(accounts).values({ id }).onConflictDoNothing({ target: accounts.id });
603
604 // The membership upsert under the row guard (`membershipAcceptsPayload`)
605 // and the account tombstone, never the organization mark.

Callers 2

writeMembershipFunction · 0.85
makeWritesFunction · 0.85

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected