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