chore: assign todos (#7297)

This commit is contained in:
forehalo
2024-06-21 07:54:14 +00:00
parent e085b927f6
commit 7b3673ae82
121 changed files with 137 additions and 157 deletions

View File

@@ -202,7 +202,7 @@ export class AuthController {
@Public()
@Get('/challenge')
async challenge() {
// TODO: impl in following PR
// TODO(@darksky): impl in following PR
return {
challenge: randomUUID(),
resource: randomUUID(),

View File

@@ -41,7 +41,6 @@ export class QuotaManagementService {
};
}
// TODO: lazy calc, need to be optimized with cache
async getUserUsage(userId: string) {
const workspaces = await this.permissions.getOwnedWorkspaces(userId);

View File

@@ -55,7 +55,7 @@ export class UserResolver {
): Promise<typeof UserOrLimitedUser | null> {
validators.assertValidEmail(email);
// TODO: need to limit a user can only get another user witch is in the same workspace
// TODO(@forehalo): need to limit a user can only get another user witch is in the same workspace
const user = await this.users.findUserWithHashedPasswordByEmail(email);
// return empty response when user not exists