Skip to content

Commit

Permalink
Fix: Bugfix Typeorm v0.3 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlaine committed Jan 17, 2023
1 parent da576f5 commit 2fa9d39
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 883 deletions.
2 changes: 1 addition & 1 deletion back/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabrique-chatbot-back",
"version": "1.17.0",
"version": "1.17.1",
"description": "",
"author": "",
"license": "MIT",
Expand Down
103 changes: 0 additions & 103 deletions back/src/admin/admin.controller.spec.ts

This file was deleted.

18 changes: 0 additions & 18 deletions back/src/admin/admin.service.spec.ts

This file was deleted.

12 changes: 8 additions & 4 deletions back/src/admin/admin.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ export class AdminService {
this._logger.log('Update Chatbot Domain Name ...', chatbotId.toString());

const chatbot: Chatbot = await this._chatbotService.findOneWithParam({
id: chatbotId,
status: ChatbotStatus.running
where :{
id: chatbotId,
status: ChatbotStatus.running
}
});
if (!chatbot) {
throw new HttpException(`Ce chatbot n'existe pas ou n'est pas en fonctionnement.`, HttpStatus.INTERNAL_SERVER_ERROR);
Expand All @@ -75,8 +77,10 @@ export class AdminService {
this._logger.log('Update Chatbot...', chatbotId.toString());

const chatbot: Chatbot = await this._chatbotService.findOneWithParam({
id: chatbotId,
status: ChatbotStatus.running
where: {
id: chatbotId,
status: ChatbotStatus.running
}
});
if (!chatbot) {
throw new HttpException(`Ce chatbot n'existe pas ou n'est pas en fonctionnement.`, HttpStatus.INTERNAL_SERVER_ERROR);
Expand Down
48 changes: 0 additions & 48 deletions back/src/auth/auth.controller.spec.ts

This file was deleted.

116 changes: 0 additions & 116 deletions back/src/auth/auth.service.spec.ts

This file was deleted.

6 changes: 4 additions & 2 deletions back/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ export class AuthService {

async resetPassword(resetPassword: ResetPasswordDto) {
const userWithoutPassword = await this._userService.findOneWithParam({
reset_password_token: resetPassword.token,
reset_password_expires: MoreThan(new Date())
where: {
reset_password_token: resetPassword.token,
reset_password_expires: MoreThan(new Date())
}
});
if (!userWithoutPassword) {
throw new HttpException('Cet utilisateur n\'existe pas.', HttpStatus.INTERNAL_SERVER_ERROR);
Expand Down
54 changes: 0 additions & 54 deletions back/src/chatbot/chatbot.controller.spec.ts

This file was deleted.

Loading

0 comments on commit 2fa9d39

Please sign in to comment.