Skip to content

Commit

Permalink
fix: wrong field set
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Aug 1, 2022
1 parent 9c6b11c commit f3a9203
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 177 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "salim-bot",
"version": "4.2.1307",
"version": "4.2.1308",
"description": "This bot is Salim. Whenever you trigger it, It become mad.",
"type": "module",
"main": "dist/bot.js",
Expand All @@ -24,21 +24,21 @@
"devDependencies": {
"@leomotors/scripts": "^3.1.0",
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
"@types/node": "^18.0.6",
"@types/node": "^18.6.3",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"eslint": "^8.21.0",
"prettier": "^2.7.1",
"prisma": "^4.1.0",
"prisma": "^4.1.1",
"typescript": "^4.7.4"
},
"dependencies": {
"@discordjs/opus": "^0.8.0",
"@prisma/client": "4.1.0",
"@prisma/client": "4.1.1",
"chalk": "^5.0.1",
"cocoa-discord-utils": "^2.1.0",
"discord.js": "^14.0.3",
"discord.js": "^14.1.2",
"libsodium-wrappers": "^0.7.10",
"s-bot-framework": "^1.1.446",
"uuid": "^8.3.2"
Expand Down
4 changes: 2 additions & 2 deletions src/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function getUser3rdParty(user: DiscordUser, ctx: Context) {
userId: user.id,
},
create: {
username: user.id,
username: user.username,
registeredGuild: ctx.guild?.name ?? "<undefined>",
lastInteractGuild: ctx.guild?.name ?? "<undefined>",
user: {
Expand All @@ -36,7 +36,7 @@ export async function getUser3rdParty(user: DiscordUser, ctx: Context) {
},
},
update: {
username: user.id,
username: user.username,
},
});

Expand Down
Loading

0 comments on commit f3a9203

Please sign in to comment.