File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class Files implements FilesController {
29
29
public async list ( params : { ids : ID [ ] } , user : User = null ) : Promise < FilesController . GetFileResponse [ ] > {
30
30
const files = await this . fileRepository . find ( { ...params , user } ) ;
31
31
32
- const filesWithLocation = await Promise . all ( files . map ( async ( file ) => {
32
+ const filesWithLocation = files . map ( ( file ) => {
33
33
const location = this . cdn . getSignedUrl ( file . path ) ;
34
34
const thumbnails = file . thumbnails . map ( path => this . cdn . getUrl ( path ) ) ;
35
35
const conversions = 'conversions' in file ? file . conversions . map ( c => this . cdn . getUrl ( c ) ) : undefined ;
@@ -40,7 +40,7 @@ class Files implements FilesController {
40
40
thumbnails,
41
41
conversions,
42
42
} ;
43
- } ) ) ;
43
+ } ) ;
44
44
45
45
return filesWithLocation ;
46
46
}
You can’t perform that action at this time.
0 commit comments