fix(eslint): now is activated and normed using ts comparaison

This commit is contained in:
Raphael 2025-08-18 14:45:46 +02:00
parent 11befcbad4
commit 561d3e92a6
14 changed files with 122 additions and 145 deletions

View file

@ -1,17 +1,9 @@
import { Events, MessageFlags } from "discord.js";
import { Events } from "discord.js";
import { prisma } from "../../lib/prisma.ts";
export default {
name: Events.GuildCreate,
async execute(guild, client) {
const botData = await prisma.bot.findUnique({
where: {
id: 1,
},
include: {
buyers: true,
},
});
async execute(guild) {
await prisma.guild.upsert({
where: {
id: guild.id,
@ -23,8 +15,7 @@ export default {
});
const members = await guild.members.fetch();
let i = 0;
for (const [memberId, member] of members) {
for (const [memberId] of members) {
await prisma.user.upsert({
where: {
id: memberId,

View file

@ -6,8 +6,7 @@ export default {
once: true,
async execute(client) {
try {
let botData: Bot;
botData = await prisma.bot.findUnique({
const botData: Bot = await prisma.bot.findUnique({
where: {
id: 1,
},