mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 17:25:35 +03:00
chore(server,web,docs) bulk bump of dependencies with vulnerabilities (#4312)
* chore: bump node version to 20.8 * chore(server,web) upgrade vulnerable dependencies * fix: revert node change * fix: commander version * fix: set country to null if undefined * fix: set docs module resolution * fix(web): correct return type of interval * fix(docs): set node in tsconfig --------- Co-authored-by: Jonathan Jogenfors <jonathan@jogenfors.se> Co-authored-by: debricked[bot] <47180885+debricked[bot]@users.noreply.github.com>
This commit is contained in:
@@ -64,7 +64,7 @@ export class MetadataRepository implements IMetadataRepository {
|
||||
this.logger.verbose(`Raw: ${JSON.stringify(address, null, 2)}`);
|
||||
|
||||
const { countryCode, name: city, admin1Code, admin2Code } = address[0] as GeoData;
|
||||
const country = getName(countryCode, 'en');
|
||||
const country = getName(countryCode, 'en') ?? null;
|
||||
const stateParts = [(admin2Code as AdminCode)?.name, (admin1Code as AdminCode)?.name].filter((name) => !!name);
|
||||
const state = stateParts.length > 0 ? stateParts.join(', ') : null;
|
||||
this.logger.debug(`Normalized: ${JSON.stringify({ country, state, city })}`);
|
||||
|
||||
Reference in New Issue
Block a user