Updates
This commit is contained in:
@@ -43,7 +43,7 @@ export default async function suAddBackup({
|
||||
data: newBackup,
|
||||
});
|
||||
|
||||
if (!newBackupEntry?.payload?.insertId) {
|
||||
if (!newBackupEntry?.postInsertReturn?.insertId) {
|
||||
return {
|
||||
success: false,
|
||||
msg: `Couldn't create new backup entry`,
|
||||
@@ -53,7 +53,7 @@ export default async function suAddBackup({
|
||||
const { single: newlyAddedBackup } =
|
||||
await dbGrabUserResource<DSQL_DATASQUIREL_BACKUPS>({
|
||||
tableName: "backups",
|
||||
targetID: newBackupEntry.payload?.insertId,
|
||||
targetID: newBackupEntry.postInsertReturn?.insertId,
|
||||
isSuperUser: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user