also remove subscription item in user on downgrade
This commit is contained in:
parent
bcf6714d8c
commit
690a840358
|
@ -113,6 +113,7 @@ export async function updateLingdocsUser(uuid: T.UUID, toUpdate:
|
|||
wordlistDbName: undefined,
|
||||
couchDbPassword: undefined,
|
||||
upgradeToStudentRequest: undefined,
|
||||
subscription: undefined,
|
||||
} |
|
||||
{ upgradeToStudentRequest: "waiting" } |
|
||||
{ upgradeToStudentRequest: "denied" } |
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue