mirror of
https://github.com/directus/directus.git
synced 2026-02-07 18:24:59 -05:00
Explicitly set catch parameters to any type (#7654)
This fixes not being able to build the repo due to type issues introduced by the Typescript 4.4 option "useUnknownInCatchVariables", which is enabled by default in strict mode.
This commit is contained in:
committed by
GitHub
parent
114dd5e3e3
commit
d64ca14348
@@ -277,7 +277,7 @@ export class FieldsService {
|
||||
if (!field.schema) return;
|
||||
this.addColumnToTable(table, field, existingColumn);
|
||||
});
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
throw await translateDatabaseError(err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user