File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
apps/dokploy/server/api/routers Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -282,12 +282,16 @@ export const postgresRouter = createTRPCRouter({
282282 const backups = await findBackupsByDbId ( input . postgresId , "postgres" ) ;
283283
284284 const cleanupOperations = [
285- removeService ( postgres . appName , postgres . serverId ) ,
286- cancelJobs ( backups ) ,
287- removePostgresById ( input . postgresId ) ,
285+ async ( ) => await removeService ( postgres ? .appName , postgres . serverId ) ,
286+ async ( ) => await cancelJobs ( backups ) ,
287+ async ( ) => await removePostgresById ( input . postgresId ) ,
288288 ] ;
289289
290- await Promise . allSettled ( cleanupOperations ) ;
290+ for ( const operation of cleanupOperations ) {
291+ try {
292+ await operation ( ) ;
293+ } catch ( _ ) { }
294+ }
291295
292296 return postgres ;
293297 } ) ,
You can’t perform that action at this time.
0 commit comments