🧑💻 Added updateGuildCounter example
This commit is contained in:
parent
56e3110e2b
commit
2371ee366c
1 changed files with 13 additions and 0 deletions
13
examples/updateGuildCounter.ts
Normal file
13
examples/updateGuildCounter.ts
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
const updateGuildCounter = await prisma.guildCounter.update({
|
||||||
|
where: {
|
||||||
|
guildId_channelId: {
|
||||||
|
guildId: guild.id,
|
||||||
|
channelId: channel.id,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
count: {
|
||||||
|
increment: 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
Loading…
Add table
Reference in a new issue