Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Sep 10, 2024
1 parent 894881e commit cb2bfe8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/server/billing/helpers/adjustUserCount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,14 @@ const addUser = async (orgIds: string[], user: IUser, dataLoader: DataLoaderWork
.insertInto('OrganizationUser')
.values(docs)
.onConflict((oc) =>
oc
.constraint('unique_org_user')
.doUpdateSet({
joinedAt: sql`CURRENT_TIMESTAMP`,
removedAt: null,
inactive: false,
role: null,
suggestedTier: null,
tier: (eb) => eb.ref('excluded.tier')
})
oc.constraint('unique_org_user').doUpdateSet({
joinedAt: sql`CURRENT_TIMESTAMP`,
removedAt: null,
inactive: false,
role: null,
suggestedTier: null,
tier: (eb) => eb.ref('excluded.tier')
})
)
.execute()
await Promise.all(
Expand Down

0 comments on commit cb2bfe8

Please sign in to comment.