final fix

master
Matthew 2022-02-03 15:04:21 -05:00
parent a7759abeee
commit fe7099232c
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -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 });
}
}