bugfix
This commit is contained in:
parent
a63ea79cf7
commit
933a3e286f
@ -1,6 +1,10 @@
|
||||
iorgid = params_kw.orgid
|
||||
db = DBPools()
|
||||
async with db.sqlorContext(dbname) as sor:
|
||||
recs = await sor.R('organization', {'id': orgid})
|
||||
if len(recs) == 0:
|
||||
return f"error: {orgid=} not found"
|
||||
|
||||
await openCustomerAccounts(sor, '0', orgid)
|
||||
return f'{orgid} customer accounts opened'
|
||||
return f'{db.e_except=}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user