lib/libis/services/rosetta/producer_handler.rb in libis-services-0.1.11 vs lib/libis/services/rosetta/producer_handler.rb in libis-services-0.1.12
- old
+ new
@@ -19,10 +19,11 @@
def user_id(external_id)
call :get_internal_user_id_by_external_id, arg0: external_id
end
def is_user?(user_id)
- call :is_user_exists, arg0: @pds_handle, arg1: user_id
+ data = call :is_user_exists, arg0: @pds_handle, arg1: user_id
+ data == "User name #{user_id} already exists"
end
def producer(producer_id, producer_info = nil)
if producer_info
info = producer(producer_id)
\ No newline at end of file