ui(admin): fix oom killer setting toggle

This commit is contained in:
Matthew Penner 2023-01-17 11:43:26 -07:00
parent f6cf4a1236
commit 450fba00bc
No known key found for this signature in database
10 changed files with 18 additions and 23 deletions

View file

@ -15,7 +15,7 @@ export interface CreateServerRequest {
io: number;
cpu: number;
threads: string;
oomDisabled: boolean;
oomKiller: boolean;
};
featureLimits: {
@ -55,7 +55,7 @@ export default (r: CreateServerRequest, include: string[] = []): Promise<Server>
memory: r.limits.memory,
swap: r.limits.swap,
threads: r.limits.threads,
oom_killer: r.limits.oomDisabled,
oom_killer: r.limits.oomKiller,
},
feature_limits: {