Fix voucher not valid error message type

This commit is contained in:
spengreb 2019-10-08 19:57:48 +02:00
parent 52b8bf488b
commit 1b27ed2f22

View file

@ -31,7 +31,7 @@ class VouchersController < ApplicationController
end
else
render json: "{ Voucher is not valid }" + params[:voucher].in?(whitelist), status: :unprocessable_entity
render json: "{ Voucher is not valid }" + str(params[:voucher].in?(whitelist)), status: :unprocessable_entity
end