also remove subscription item in user on downgrade

This commit is contained in:
adueck 2022-10-15 21:16:23 +05:00
parent bcf6714d8c
commit 690a840358
2 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,7 @@ export async function updateLingdocsUser(uuid: T.UUID, toUpdate:
wordlistDbName: undefined,
couchDbPassword: undefined,
upgradeToStudentRequest: undefined,
subscription: undefined,
} |
{ upgradeToStudentRequest: "waiting" } |
{ upgradeToStudentRequest: "denied" } |

View File

@ -89,6 +89,7 @@ export async function downgradeUser(userId: T.UUID, subscriptionId?: string): Pr
wordlistDbName: undefined,
couchDbPassword: undefined,
upgradeToStudentRequest: undefined,
subscription: undefined,
});
if (user.email) {
// TODO