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,
|
wordlistDbName: undefined,
|
||||||
couchDbPassword: undefined,
|
couchDbPassword: undefined,
|
||||||
upgradeToStudentRequest: undefined,
|
upgradeToStudentRequest: undefined,
|
||||||
|
subscription: undefined,
|
||||||
} |
|
} |
|
||||||
{ upgradeToStudentRequest: "waiting" } |
|
{ upgradeToStudentRequest: "waiting" } |
|
||||||
{ upgradeToStudentRequest: "denied" } |
|
{ upgradeToStudentRequest: "denied" } |
|
||||||
|
|
|
@ -89,6 +89,7 @@ export async function downgradeUser(userId: T.UUID, subscriptionId?: string): Pr
|
||||||
wordlistDbName: undefined,
|
wordlistDbName: undefined,
|
||||||
couchDbPassword: undefined,
|
couchDbPassword: undefined,
|
||||||
upgradeToStudentRequest: undefined,
|
upgradeToStudentRequest: undefined,
|
||||||
|
subscription: undefined,
|
||||||
});
|
});
|
||||||
if (user.email) {
|
if (user.email) {
|
||||||
// TODO
|
// TODO
|
||||||
|
|
Loading…
Reference in New Issue