We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea8b95f commit 83b685cCopy full SHA for 83b685c
1 file changed
services/pyrodactyl.js
@@ -256,9 +256,13 @@ export async function reinstallPteroServer(serverId) {
256
}
257
258
export async function updatePteroServerBuild(serverId, limits) {
259
+ // Fetch current server to get existing limits for fields we don't override
260
+ const server = await getServerById(serverId);
261
+ const currentLimits = server.limits || {};
262
+ const mergedLimits = { ...currentLimits, ...limits };
263
await pteroFetch(`/servers/${serverId}/build`, {
264
method: 'PATCH',
- body: JSON.stringify({ limits }),
265
+ body: JSON.stringify({ limits: mergedLimits }),
266
});
267
268
0 commit comments