🧑‍💻 Added updateGuildCounter example

This commit is contained in:
Axel Olausson Holtenäs 2022-10-19 10:50:28 +02:00
parent 56e3110e2b
commit 2371ee366c

View file

@ -0,0 +1,13 @@
const updateGuildCounter = await prisma.guildCounter.update({
where: {
guildId_channelId: {
guildId: guild.id,
channelId: channel.id,
},
},
data: {
count: {
increment: 1,
},
},
});