💡 Added comments

This commit is contained in:
Axel Olausson Holtenäs 2022-10-16 15:28:08 +02:00
parent 26f9420f67
commit b795d00d17
2 changed files with 2 additions and 0 deletions

View file

@ -6,6 +6,7 @@ import guildSchema from "../../../../../models/guild";
import shopRoleSchema from "../../../../../models/shopRole";
import userSchema from "../../../../../models/user";
// Execute the component
export const execute = async (client: Client, role: IShopRole) => {
const { guildId, userId, roleId } = role;
if (!userId) throw new Error("User ID not found for shop role.");

View file

@ -8,6 +8,7 @@ export const options = {
schedule: "*/30 * * * *", // https://crontab.guru/
};
// Execute the job
export const execute = async () => {
const timeouts = await timeoutSchema.find();
await Promise.all(