Fix 'true' validation in repp mark message as read endpoint

This commit is contained in:
Alex Sherman 2021-07-19 16:09:41 +05:00
parent fc338dea16
commit 63e911acb6

View file

@ -48,7 +48,7 @@ module Repp
api :PUT, '/repp/v1/registrar/notifications' api :PUT, '/repp/v1/registrar/notifications'
desc 'Mark poll message as read' desc 'Mark poll message as read'
param :notification, Hash, required: true do param :notification, Hash, required: true do
param :read, [true], required: true, desc: 'Set as true to mark as read' param :read, [true, 'true'], required: true, desc: 'Set as true to mark as read'
end end
def update def update
# rubocop:disable Style/AndOr # rubocop:disable Style/AndOr