Browse Source

PropertyService.getByKey made generic

csehatt741 2 days ago
parent
commit
5ee825ea55
  1. 4
      apps/api/src/services/property/property.service.ts

4
apps/api/src/services/property/property.service.ts

@ -38,9 +38,9 @@ export class PropertyService {
return response; return response;
} }
public async getByKey(aKey: string) { public async getByKey<TKey>(aKey: string): Promise<TKey | undefined> {
const properties = await this.get(); const properties = await this.get();
return properties?.[aKey]; return properties?.[aKey] as TKey;
} }
public async isUserSignupEnabled() { public async isUserSignupEnabled() {

Loading…
Cancel
Save