perf(database): only get id from userExists

This commit is contained in:
smyalygames 2023-03-04 00:25:42 +00:00
parent c7af73cec2
commit 3fe499174e

View File

@ -28,6 +28,9 @@ export async function userExists(userId: Snowflake) {
where: { where: {
id: userId, id: userId,
}, },
select: {
id: true,
},
}); });
// If the user is found on the database, then return true, otherwise, false. // If the user is found on the database, then return true, otherwise, false.