History

Feed the cloud membership mirror from login and member writes (#2004)

Rhys Sullivan committed 1 month ago

Commit ddfe3f51 parent 89f424633 files · +5374 −606Browse files

Showing the changes to apps/cloud/src/api/protected-api-key-auth.node.test.ts (1 of 33 files). Show all

Unified · Split

apps/cloud/src/api/protected-api-key-auth.node.test.ts+9−0
@@ -68,18 +68,27 @@ const stubUsers = Layer.succeed(UserStoreService)({ · 67 unmodified lines
68 upsertOrganization: async (org: { id: string; name: string }) => ({68 upsertOrganization: async (org: { id: string; name: string }) => ({
69 ...org,69 ...org,
70 slug: `org-slug-${org.id}`,70 slug: `org-slug-${org.id}`,
71 backfilledAt: null,
72 deletedAt: null,
73 workosUpdatedAt: null,
71 createdAt,74 createdAt,
72 }),75 }),
73 getOrganization: async (id: string) => ({76 getOrganization: async (id: string) => ({
74 id,77 id,
75 name: `Org ${id}`,78 name: `Org ${id}`,
76 slug: `org-slug-${id}`,79 slug: `org-slug-${id}`,
80 backfilledAt: null,
81 deletedAt: null,
82 workosUpdatedAt: null,
77 createdAt,83 createdAt,
78 }),84 }),
79 getOrganizationBySlug: async (slug: string) => ({85 getOrganizationBySlug: async (slug: string) => ({
80 id: "org_by_slug",86 id: "org_by_slug",
81 name: `Org ${slug}`,87 name: `Org ${slug}`,
82 slug,88 slug,
89 backfilledAt: null,
90 deletedAt: null,
91 workosUpdatedAt: null,
83 createdAt,92 createdAt,
84 }),93 }),
85 deleteOrganizationCascade: async () => {},94 deleteOrganizationCascade: async () => {},