update
This commit is contained in:
parent
7f483fa246
commit
144b3afbc8
@ -35,6 +35,8 @@ async def get_user_balance(ns={}):
|
|||||||
}
|
}
|
||||||
orgid = await sor.R('organization', {'id': user[0]['orgid']})
|
orgid = await sor.R('organization', {'id': user[0]['orgid']})
|
||||||
balance = await getCustomerBalance(sor, orgid[0]['id'])
|
balance = await getCustomerBalance(sor, orgid[0]['id'])
|
||||||
|
ns['balance'] = balance
|
||||||
|
debug(ns)
|
||||||
return {
|
return {
|
||||||
'status': 'ok',
|
'status': 'ok',
|
||||||
'balance': balance
|
'balance': balance
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user