fix error when sorting users after edition
All checks were successful
delpoy / build-and-deploy (push) Successful in 52s

This commit is contained in:
2023-10-04 14:32:31 +02:00
parent 85597585da
commit 444631f649
3 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ export const POST = (async ({ request, cookies }) => {
from: number | null;
name: string | null;
edition: 'java' | 'bedrock' | 'cracked' | null;
playertype: 'java' | 'bedrock' | 'cracked' | null;
search: string | null;
slim: boolean | null;
@@ -39,8 +39,8 @@ export const POST = (async ({ request, cookies }) => {
}
});
}
if (data.edition) {
usersFindOptions.edition = data.edition;
if (data.playertype) {
usersFindOptions.playertype = data.playertype;
}
const users = await User.findAll({
where: usersFindOptions,