This commit is contained in:
Axel Olausson Holtenäs 2022-04-14 20:16:16 +02:00
parent 06ab6c2f11
commit df1d8d6f3c

View file

@ -10,7 +10,7 @@ import guildSchema from "@schemas/guild";
export default async (client: Client) => {
await shopRoleSchema?.find()?.then(async (shopRoles: any) => {
shopRoles?.map(async (shopRole) => {
shopRoles?.map(async (shopRole: any) => {
const payed = new Date(shopRole?.lastPayed);
const oneHourAfterPayed = payed?.setHours(payed?.getHours() + 1);