13 lines
223 B
TypeScript
13 lines
223 B
TypeScript
const updateGuildCounter = await prisma.guildCounter.update({
|
|
where: {
|
|
guildId_channelId: {
|
|
guildId: guild.id,
|
|
channelId: channel.id,
|
|
},
|
|
},
|
|
data: {
|
|
count: {
|
|
increment: 1,
|
|
},
|
|
},
|
|
});
|