[FIX] Removed S3 Key & ID from returning to an API client
This commit is contained in:
parent
ea54ee6239
commit
cbadc54d86
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue