final fix
parent
a7759abeee
commit
fe7099232c
|
@ -15,7 +15,7 @@ export default async function checkLock(client: Client) {
|
|||
members.forEach(async (member: MemberInterface) => {
|
||||
if (member.misc?.t3TemporaryExpiration && member.misc.t3TemporaryExpiration.processed === false) {
|
||||
if (new Date() > member.misc.t3TemporaryExpiration.date) {
|
||||
await CloudServicesUtil.setTier(member.id, member.misc.t3TemporaryExpiration.previousTier, client.config.internalKey);
|
||||
await CloudServicesUtil.setTier(member.userID, member.misc.t3TemporaryExpiration.previousTier, client.config.internalKey);
|
||||
await member.updateOne({ 'misc.t3TemporaryExpiration.processed': true, 'misc.t3TemporaryExpiration.previousTier': null });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue