refactor: system metadata (#8923)

refactor(server): system metadata
This commit is contained in:
Jason Rasmussen
2024-04-19 20:36:15 -04:00
committed by GitHub
parent 78c7ff855d
commit 171b6bb0a6
32 changed files with 1023 additions and 163 deletions

View File

@@ -36,8 +36,8 @@ export class MetadataRepository implements IMetadataRepository {
this.logger.log('Initializing metadata repository');
const geodataDate = await readFile(geodataDatePath, 'utf8');
// TODO move to metadata service init
const geocodingMetadata = await this.systemMetadataRepository.get(SystemMetadataKey.REVERSE_GEOCODING_STATE);
if (geocodingMetadata?.lastUpdate === geodataDate) {
return;
}