File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export abstract class Queue {
2626 }
2727 Queue . pgBoss = new PgBoss ( {
2828 connectionString : url ,
29+ max : 4 ,
2930 application_name : 'storage-api' ,
3031 deleteAfterDays : 7 ,
3132 retentionDays : 7 ,
Original file line number Diff line number Diff line change @@ -313,6 +313,10 @@ export class ObjectStorage {
313313 async moveObject ( sourceObjectName : string , destinationObjectName : string ) {
314314 mustBeValidKey ( destinationObjectName , 'The destination object name contains invalid characters' )
315315
316+ if ( sourceObjectName === destinationObjectName ) {
317+ return
318+ }
319+
316320 await this . db . updateObjectName ( this . bucketId , sourceObjectName , destinationObjectName )
317321
318322 const s3SourceKey = `${ this . db . tenantId } /${ this . bucketId } /${ sourceObjectName } `
You can’t perform that action at this time.
0 commit comments