fix: remove system_notification_history

This commit is contained in:
2021-10-15 14:54:51 +08:00
parent 0d60e58304
commit 1dcc38f617
10 changed files with 40 additions and 173 deletions

View File

@@ -1,15 +0,0 @@
class Users::SystemNotificationHistoriesController < Users::BaseController
before_action :private_user_resources!, only: [:create]
def create
@history = observed_user.system_notification_histories.new(system_notification_id: params[:system_notification_id])
if @history.save
render_ok
else
Rails.logger.info @history.errors.as_json
render_error(@history.errors.full_messages.join(","))
end
rescue Exception => e
uid_logger_error(e.message)
tip_exception(e.message)
end
end