This commit is contained in:
yumoqing 2026-04-01 17:56:46 +08:00
parent a63ea79cf7
commit 933a3e286f

View File

@ -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=}'