mirror of https://github.com/sylv/micro.git
build: salty deps dont like being bundled
This commit is contained in:
parent
eaee2318f9
commit
deb7d1924a
|
@ -39,12 +39,14 @@
|
|||
"fluent-ffmpeg": "^2.1.2",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.0",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"graphql": "^16.6.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"nodemailer": "^6.9.1",
|
||||
"otplib": "^12.0.1",
|
||||
"mercurius": "^12.2.0",
|
||||
"passport-jwt": "^4.0.1",
|
||||
"stream-size": "^0.0.6",
|
||||
"sharp": "^0.32.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -62,7 +64,6 @@
|
|||
"@types/nodemailer": "^6.4.7",
|
||||
"@types/passport-jwt": "^3.0.8",
|
||||
"@types/sharp": "^0.31.1",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"bytes": "^3.1.2",
|
||||
"content-range": "^2.0.2",
|
||||
"dedent": "^0.7.0",
|
||||
|
@ -77,7 +78,6 @@
|
|||
"pretty-bytes": "^6.1.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"rxjs": "^7.8.0",
|
||||
"stream-size": "^0.0.6",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsup": "^6.7.0",
|
||||
"typescript": "^5.0.3",
|
||||
|
|
|
@ -137,9 +137,7 @@ export class UserService {
|
|||
otpEnabled: false,
|
||||
});
|
||||
|
||||
console.log(user);
|
||||
if (data.email) {
|
||||
console.log('check');
|
||||
await this.checkEmail(data.email);
|
||||
await this.sendVerificationEmail(user);
|
||||
}
|
||||
|
@ -181,13 +179,11 @@ export class UserService {
|
|||
}
|
||||
|
||||
async checkEmail(email: string) {
|
||||
console.log('findOne');
|
||||
const existingByLowerEmail = await this.userRepo.findOne({
|
||||
email: {
|
||||
$ilike: email.toLowerCase(),
|
||||
},
|
||||
});
|
||||
console.log('findOne DONE');
|
||||
|
||||
if (existingByLowerEmail) {
|
||||
throw new ConflictException('Username or email already exists.');
|
||||
|
|
Loading…
Reference in New Issue