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

Method restore

server/src/services/trash.service.ts:27–33  ·  view source on GitHub ↗
(auth: AuthDto)

Source from the content-addressed store, hash-verified

25 }
26
27 async restore(auth: AuthDto): Promise<TrashResponseDto> {
28 const count = await this.trashRepository.restore(auth.user.id);
29 if (count > 0) {
30 this.logger.log(`Restored ${count} asset(s) from trash`);
31 }
32 return { count };
33 }
34
35 async empty(auth: AuthDto): Promise<TrashResponseDto> {
36 const count = await this.trashRepository.empty(auth.user.id);

Callers 5

utils.spec.tsFile · 0.45
restoreUserAdminMethod · 0.45
restoreTrashMethod · 0.45

Calls 1

logMethod · 0.80

Tested by

no test coverage detected