Skip to content

Commit

Permalink
fix: remove id from callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Dec 22, 2024
1 parent bedca12 commit 764a155
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion projects/api/src/server/extern.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export class ExternController {
await this.backupService.backup(backup, input);

return {
id: 'dp-' + backup.id,
status: BackupStatus.STARTED,
};
}
Expand Down
2 changes: 0 additions & 2 deletions projects/api/src/server/modules/backup/backup.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ export class BackupService extends CrudService<Backup, BackupCreateInput, Backup
const endTime = new Date().getTime();
try {
await axios.post(additionalInfos.callbackUrl, {
id: 'dp-' + backup.id,
status: BackupStatus.FAILED,
duration: endTime - startTime
});
Expand All @@ -308,7 +307,6 @@ export class BackupService extends CrudService<Backup, BackupCreateInput, Backup

try {
await axios.post(additionalInfos.callbackUrl, {
id: 'dp-' + backup.id,
status: BackupStatus.SUCCEDDED,
duration: endTime - startTime,
size: lastBackup?.size || undefined,
Expand Down

0 comments on commit 764a155

Please sign in to comment.