feat: seed default task logos

This commit is contained in:
Abdalhamid Alhamad
2024-12-12 11:14:38 +03:00
parent e6ed1772f7
commit 687b6a5c6d
4 changed files with 54 additions and 1 deletions

View File

@ -20,4 +20,13 @@ export class LookupController {
return ResponseFactory.dataArray(avatars.map((avatar) => new DocumentMetaResponseDto(avatar)));
}
@UseGuards(AccessTokenGuard)
@Get('default-task-logos')
@ApiDataArrayResponse(DocumentMetaResponseDto)
async findDefaultTaskLogos() {
const avatars = await this.lookupService.findDefaultTasksLogo();
return ResponseFactory.dataArray(avatars.map((avatar) => new DocumentMetaResponseDto(avatar)));
}
}