mirror of
https://github.com/immich-app/immich.git
synced 2025-12-27 17:24:58 +03:00
feat(server): add memories statistics resource (#19035)
This commit is contained in:
@@ -82,6 +82,10 @@ export class MemoryService extends BaseService {
|
||||
return memories.map((memory) => mapMemory(memory, auth));
|
||||
}
|
||||
|
||||
statistics(auth: AuthDto, dto: MemorySearchDto) {
|
||||
return this.memoryRepository.statistics(auth.user.id, dto);
|
||||
}
|
||||
|
||||
async get(auth: AuthDto, id: string): Promise<MemoryResponseDto> {
|
||||
await this.requireAccess({ auth, permission: Permission.MEMORY_READ, ids: [id] });
|
||||
const memory = await this.findOrFail(id);
|
||||
|
||||
Reference in New Issue
Block a user