Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Jan 3, 2025
1 parent e5951fb commit 0fa59ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions api/paidAction/territoryUnarchive.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ export async function perform ({ name, invoiceId, ...data }, { me, cost, tx }) {
// unsubscribe the old user
const oldSubscription = await tx.subSubscription.findUnique({ where: { userId_subName: { userId: oldUserId, subName: name } } })
if (oldSubscription) await tx.subSubscription.delete({ where: { userId_subName: { subName: name, userId: oldUserId } } })

// subscribe the new user if they aren't already
// await tx.subSubscription.upsert({
// where: { userId_subName: { userId: newUserId, subName: name } },
// update: {},
// create: { userId: newUserId, subName: name }
// })
}

await tx.subAct.create({
Expand Down
8 changes: 0 additions & 8 deletions api/resolvers/sub.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,6 @@ export default {
// unsubscribe the old user
const oldSubscription = await tx.subSubscription.findUnique({ where: { userId_subName: { userId: oldUserId, subName } } })
if (oldSubscription) await tx.subSubscription.delete({ where: { userId_subName: { subName, userId: oldUserId } } })

// subscribe the new user if they aren't already
// await tx.subSubscription.upsert({
// where: { userId_subName: { userId: newUserId, subName } },
// update: {},
// create: { userId: newUserId, subName }
// })

return updatedSub
})

Expand Down

0 comments on commit 0fa59ca

Please sign in to comment.