change caching of profile image

This commit is contained in:
Paul Paffe
2023-07-06 14:18:58 -04:00
parent fa648b1e00
commit 5874fc73ff
4 changed files with 21 additions and 1 deletions

View File

@@ -116,6 +116,14 @@ export class UserCore {
return createReadStream(user.profileImagePath);
}
async getUserProfileImageHash(user: UserEntity): Promise<string> {
if (!user.profileImageHash) {
throw new NotFoundException('User does not have a profile image');
}
return user.profileImageHash;
async getList(filter?: UserListFilter): Promise<UserEntity[]> {
return this.userRepository.getList(filter);
}