Changed api to check lnurl exists and checking hash sent
This commit is contained in:
@@ -119,9 +119,4 @@ async def api_link_delete(link_id):
|
||||
@api_check_wallet_key("invoice")
|
||||
async def api_hash_retrieve(the_hash, lnurl_id):
|
||||
hashCheck = await get_hash_check(the_hash, lnurl_id)
|
||||
|
||||
if not hashCheck:
|
||||
hashCheck = await create_hash_check(the_hash, lnurl_id)
|
||||
return jsonify({"status": False}), HTTPStatus.OK
|
||||
|
||||
return jsonify({"status": True}), HTTPStatus.OK
|
||||
return jsonify(hashCheck), HTTPStatus.OK
|
||||
Reference in New Issue
Block a user