mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server,cli): don't float promises (#4433)
* fix: don't allow floating promises * fix: await all promises * fix: download archives * fix cli tests * fix: skip web
This commit is contained in:
parent
7e9fc4aa97
commit
f0bb50b61a
13 changed files with 41 additions and 43 deletions
|
|
@ -90,14 +90,14 @@ export class AppService {
|
|||
[JobName.LIBRARY_QUEUE_CLEANUP]: () => this.libraryService.handleQueueCleanup(),
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (error: Error | any) => {
|
||||
process.on('uncaughtException', async (error: Error | any) => {
|
||||
const isCsvError = error.code === 'CSV_RECORD_INCONSISTENT_FIELDS_LENGTH';
|
||||
if (!isCsvError) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
this.logger.warn('Geocoding csv parse error, trying again without cache...');
|
||||
this.metadataService.init(true);
|
||||
await this.metadataService.init(true);
|
||||
});
|
||||
|
||||
await this.metadataService.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue