fix error when sorting users after edition
All checks were successful
delpoy / build-and-deploy (push) Successful in 52s
All checks were successful
delpoy / build-and-deploy (push) Successful in 52s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user