feat: user usage init (#5074)

This commit is contained in:
DarkSky
2023-12-13 09:21:14 +00:00
parent 098787bd0c
commit 77a5552dcd
14 changed files with 818 additions and 11 deletions

View File

@@ -44,7 +44,10 @@ export class UsersService {
})
.then(user => user?.features.map(f => f.feature) ?? []);
return getStorageQuota(features) || this.config.objectStorage.quota;
return (
getStorageQuota(features.map(f => f.feature)) ||
this.config.objectStorage.quota
);
}
async findUserByEmail(email: string) {