[FIX] Removed S3 Key & ID from returning to an API client

This commit is contained in:
Dunemask 2024-01-23 13:03:44 -07:00
parent ea54ee6239
commit cbadc54d86

View file

@ -135,9 +135,10 @@ export async function getServer(req, res) {
}
const { id } = serverSpec;
getServerEntry(id).then((s) => {
delete s.backupKey;
delete s.backupKey; // Do not let this ever get to an API client
s.backupBucket = s.backupPath;
delete s.backupPath;
delete s.backupId; // Do not let this ever get to an API client
res.json(s);
});
}