Skip to content

Commit

Permalink
Tiny cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtaber129 committed Nov 8, 2023
1 parent cd932b6 commit a2d4ff0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/server/graphql/private/mutations/endTrial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const endTrial: MutationResolvers['endTrial'] = async (_source, {orgId}, {dataLo
await Promise.all([
r({
orgUpdate: r.table('Organization').get(orgId).update({
periodEnd: now,
trialStartDate: null,
stripeSubscriptionId: null,
updatedAt: now
})
}).run(),
Expand All @@ -34,8 +32,7 @@ const endTrial: MutationResolvers['endTrial'] = async (_source, {orgId}, {dataLo

await Promise.all([setUserTierForOrgId(orgId), setTierForOrgUsers(orgId)])

const data = {organization, trialStartDate: initialTrialStartDate}
return data
return {organization, trialStartDate: initialTrialStartDate}
}

export default endTrial

0 comments on commit a2d4ff0

Please sign in to comment.