chore(server): curly braces (#5361)

This commit is contained in:
Jason Rasmussen
2023-11-28 15:09:20 -05:00
committed by GitHub
parent cffdd9c86a
commit 5c1c174db1
3 changed files with 7 additions and 2 deletions
@@ -10,7 +10,9 @@ export class SystemMetadataRepository implements ISystemMetadataRepository {
) {}
async get<T extends keyof SystemMetadata>(key: T): Promise<SystemMetadata[T] | null> {
const metadata = await this.repository.findOne({ where: { key } });
if (!metadata) return null;
if (!metadata) {
return null;
}
return metadata.value as SystemMetadata[T];
}