fix: created_by should be user_id not userorgid

This commit is contained in:
yumoqing 2026-07-03 16:10:02 +08:00
parent 724a912bc9
commit e44c84d14c

View File

@ -8,11 +8,12 @@ if not id or len(id) > 32:
id = getID()
ns['id'] = id
user_id = await get_user()
userorgid = await get_userorgid()
if not userorgid:
return {'widgettype':'Error','options':{'title':'Authorization Error','message':'Please login'}}
ns['resellerid'] = userorgid
ns['created_by'] = userorgid
ns['created_by'] = user_id
ns['created_at'] = timestampstr()
ns['updated_at'] = timestampstr()