This commit is contained in:
Axel Olausson Holtenäs 2022-04-14 20:17:17 +02:00
parent df1d8d6f3c
commit cae078793c
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
"test": "jest",
"start": "nodemon | pino-pretty -i pid,hostname -t yyyy-mm-dd HH:MM:s",
"prettier-format": "prettier \"src/**/*.ts\" --write",
"lint": "eslint . --ext .ts",
"lint": "eslint ./src --ext .ts",
"prepare": "husky install"
},
"keywords": [
@ -66,7 +66,7 @@
"eslint-plugin-import": "2.26.0",
"eslint-plugin-no-loops": "^0.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"husky": "^7.0.0",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
"prettier": "^2.6.0"

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: any) => {
shopRoles?.map(async (shopRole) => {
const payed = new Date(shopRole?.lastPayed);
const oneHourAfterPayed = payed?.setHours(payed?.getHours() + 1);