From c49b79ca5dfdd793be24104bcc2d4eecb74e8594 Mon Sep 17 00:00:00 2001 From: mr-exz Date: Mon, 23 Dec 2024 12:35:45 +0300 Subject: [PATCH] fix --- CHANGELOG.md | 4 ++++ bot/commands/answer_set_custom_text.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3da983..f481fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 0.18.1 +### Bugfixes +- DB migration fixes + ## 0.18.0 ### Improvements - Added command to display known problems for channel [#169](/../../issues/169) diff --git a/bot/commands/answer_set_custom_text.rb b/bot/commands/answer_set_custom_text.rb index 2dc6848..c763786 100644 --- a/bot/commands/answer_set_custom_text.rb +++ b/bot/commands/answer_set_custom_text.rb @@ -19,7 +19,7 @@ def self.call(client:, data:, match:) return end - Answer.where(channel_id: data.channel, type: answer_type).delete_all + Answer.where(channel_id: data.channel, answer_type: answer_type).delete_all answer = Answer.new answer.body = custom_text answer.channel_id = data.channel