Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix build error for ci workflow

Amruth Pillai4e91a2e2eff7
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 7d1c39659..702f6a701 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -5,7 +5,5 @@
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cn\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
],
- "i18n-ally.localesPaths": [
- "apps/client/src/locales"
- ]
+ "i18n-ally.localesPaths": ["apps/client/src/locales"]
}
diff --git a/apps/server/src/auth/auth.service.ts b/apps/server/src/auth/auth.service.ts
index 6cea6f1f3..70e1522d6 100644
--- a/apps/server/src/auth/auth.service.ts
+++ b/apps/server/src/auth/auth.service.ts
@@ -98,7 +98,7 @@ export class AuthService {
if (payload.isTwoFactorAuth) return user;
}
- async register(registerDto: RegisterDto) {
+ async register(registerDto: RegisterDto): Promise<UserWithSecrets> {
const hashedPassword = await this.hash(registerDto.password);
try {
@@ -115,7 +115,7 @@ export class AuthService {
// Do not `await` this function, otherwise the user will have to wait for the email to be sent before the response is returned
void this.sendVerificationEmail(user.email);
- return user as UserWithSecrets;
+ return user;
} catch (error) {
if (error instanceof PrismaClientKnownRequestError && error.code === "P2002") {
throw new BadRequestException(ErrorMessage.UserAlreadyExists);
@@ -346,7 +346,7 @@ export class AuthService {
return user;
}
- async useBackup2FACode(email: string, code: string) {
+ async useBackup2FACode(email: string, code: string): Promise<UserWithSecrets> {
const user = await this.userService.findOneByIdentifierOrThrow(email);
// If the user doesn't have 2FA enabled, or does not have a 2FA secret set, throw an error
@@ -366,6 +366,6 @@ export class AuthService {
secrets: { update: { twoFactorBackupCodes: backupCodes } },
});
- return user as UserWithSecrets;
+ return user;
}
}
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index a8abfe487..2dbd56423 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -1,9 +1,9 @@
onlyBuiltDependencies:
- - '@nestjs/core'
- - '@parcel/watcher'
- - '@prisma/client'
- - '@prisma/engines'
- - '@swc/core'
+ - "@nestjs/core"
+ - "@parcel/watcher"
+ - "@prisma/client"
+ - "@prisma/engines"
+ - "@swc/core"
- esbuild
- nx
- prisma