MCPcopy
hub / github.com/immich-app/immich / getById

Method getById

server/src/services/api-key.service.ts:70–76  ·  view source on GitHub ↗
(auth: AuthDto, id: string)

Source from the content-addressed store, hash-verified

68 }
69
70 async getById(auth: AuthDto, id: string): Promise<ApiKeyResponseDto> {
71 const key = await this.apiKeyRepository.getById(auth.user.id, id);
72 if (!key) {
73 throw new BadRequestException('API Key not found');
74 }
75 return this.map(key);
76 }
77
78 async getAll(auth: AuthDto): Promise<ApiKeyResponseDto[]> {
79 const keys = await this.apiKeyRepository.getByUserId(auth.user.id);

Callers 3

updateMethod · 0.45
deleteMethod · 0.45
getMineMethod · 0.45

Calls 1

mapMethod · 0.95

Tested by

no test coverage detected