Added some changes to the propagate corporate changes
This commit is contained in:
@@ -90,7 +90,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
if (updatedUser.status || updatedUser.type === "corporate") {
|
||||
// there's no await as this does not affect the user
|
||||
propagateStatusChange(queryId, updatedUser.status);
|
||||
propagateExpiryDateChanges(queryId, user.subscriptionExpirationDate || null, updatedUser.subscriptionExpirationDate || null);
|
||||
propagateExpiryDateChanges(queryId, user.subscriptionExpirationDate, updatedUser.subscriptionExpirationDate || null);
|
||||
}
|
||||
|
||||
res.status(200).json({ok: true});
|
||||
|
||||
Reference in New Issue
Block a user