From fe7099232c758fb64a04baed9275e3cb1c7e8e66 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 3 Feb 2022 15:04:21 -0500 Subject: [PATCH] final fix --- src/intervals/autoRelease.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intervals/autoRelease.ts b/src/intervals/autoRelease.ts index 2924707..d8b2837 100644 --- a/src/intervals/autoRelease.ts +++ b/src/intervals/autoRelease.ts @@ -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 }); } }