Disable billing autorenew on transfer (#950)

This commit is contained in:
ekzyis 2024-03-21 01:59:06 +01:00 committed by GitHub
parent a1a82b9680
commit 889d494eaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ export default {
const [, updatedSub] = await models.$transaction([
models.territoryTransfer.create({ data: { subName, oldUserId: me.id, newUserId: user.id } }),
models.sub.update({ where: { name: subName }, data: { userId: user.id } })
models.sub.update({ where: { name: subName }, data: { userId: user.id, billingAutoRenew: false } })
])
notifyTerritoryTransfer({ models, sub, to: user })