🏷️ use built-in type

This commit is contained in:
Axel Olausson Holtenäs 2022-04-14 20:09:28 +02:00
parent 8a1941d119
commit 06ab6c2f11
No known key found for this signature in database
GPG key ID: 9347A5E873995701

View file

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