Skip to content

Commit

Permalink
GetBotStatus resolve in update.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c committed Mar 14, 2024
1 parent 8041225 commit ee3a714
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 0 deletions.
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/migration/.DS_Store
Binary file not shown.
Binary file added src/modules/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions src/modules/bot/bot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ export class BotService {
}
updateBotDto.endDate = new Date(updateBotDto.endDate);
}
if (updateBotDto.status) {
updateBotDto.status = this.getBotStatus(updateBotDto.status);
}
const updatedBot = await this.prisma.bot.update({
where: {
id,
Expand Down

0 comments on commit ee3a714

Please sign in to comment.