🏷️ use built-in type
This commit is contained in:
parent
8a1941d119
commit
06ab6c2f11
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue