Fixes after repp-apidoc update

This commit is contained in:
Sergei Tsõganov 2022-07-12 15:42:49 +03:00
parent c7701ce1b1
commit 26cb791586
11 changed files with 25 additions and 38 deletions

View file

@ -63,7 +63,7 @@ module Repp
desc 'Check contact code availability'
def check
contact = Epp::Contact.find_by(code: params[:id])
data = { contact: { id: params[:id], available: contact.nil? } }
data = { contact: { code: params[:id], available: contact.nil? } }
render_success(data: data)
end