WIP: NitradoAPI changes before merging origin/typescript

This commit is contained in:
knighthawk4227 committed 2025-10-01 12:40:49 -07:00
1 parent f622b94002
commit d624268a85
1 file changed
+6 -4
+6 -4
View File
@@ -337,7 +337,7 @@ export const CheckServerStatus = async (nitrado_cred: any, client: any) =>
}; };
export const DisableBaseDamage = async (nitrado_cred: any, export const DisableBaseDamage = async (nitrado_cred: any,
client: any, client: any,
preference: any) => { preference: any) => {
const pref = preference ? "1" : "0"; const pref = preference ? "1" : "0";
const posted = await module.exports.PostServerSettings(nitrado_cred, client, "config", "disableBaseDamage", pref); const posted = await module.exports.PostServerSettings(nitrado_cred, client, "config", "disableBaseDamage", pref);
@@ -366,9 +366,11 @@ export const DisableBaseDamage = async (nitrado_cred: any,
return 0; return 0;
}; };
export const DisableContainerDamage = async (nitrado_cred: any, export const DisableContainerDamage = async (
client: any, nitrado_cred: any,
preference: any) => { client: any,
preference: any) =>
{
const pref = preference ? "1" : "0"; const pref = preference ? "1" : "0";
const posted = await module.exports.PostServerSettings(nitrado_cred, const posted = await module.exports.PostServerSettings(nitrado_cred,
client, "config", "disableContainerDamage", pref); client, "config", "disableContainerDamage", pref);