mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 05:44:16 +02:00
perf(database): only get id from userExists
This commit is contained in:
parent
c7af73cec2
commit
3fe499174e
@ -28,6 +28,9 @@ export async function userExists(userId: Snowflake) {
|
||||
where: {
|
||||
id: userId,
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
},
|
||||
});
|
||||
|
||||
// If the user is found on the database, then return true, otherwise, false.
|
||||
|
Loading…
x
Reference in New Issue
Block a user