This commit is contained in:
yumoqing 2025-12-22 17:21:50 +08:00
parent 0a076f313c
commit e384efe28e

View File

@ -279,10 +279,10 @@ dbname = get_module_dbname('{{modulename}}')
async with db.sqlorContext(dbname) as sor:
{% if logined_userid or logined_userorgid %}
ns1 = {
{% logined_userorgid %}
{% if logined_userorgid %}
"{{logined_userorgid}}": userorgid,
{% endif %}
{% logined_userid %}
{% if logined_userid %}
"{{logined_userid}}": userid,
{% endif %}
"id": params_kw.id
@ -299,6 +299,7 @@ async with db.sqlorContext(dbname) as sor:
"message":"Record no exist or with wrong ownership"
}
}
{% endif %}
r = await sor.U('{{summary[0].name}}', ns)
debug('update success');
return {