fix: created_by should be user_id not userorgid
This commit is contained in:
parent
724a912bc9
commit
e44c84d14c
@ -8,11 +8,12 @@ if not id or len(id) > 32:
|
|||||||
id = getID()
|
id = getID()
|
||||||
ns['id'] = id
|
ns['id'] = id
|
||||||
|
|
||||||
|
user_id = await get_user()
|
||||||
userorgid = await get_userorgid()
|
userorgid = await get_userorgid()
|
||||||
if not userorgid:
|
if not userorgid:
|
||||||
return {'widgettype':'Error','options':{'title':'Authorization Error','message':'Please login'}}
|
return {'widgettype':'Error','options':{'title':'Authorization Error','message':'Please login'}}
|
||||||
ns['resellerid'] = userorgid
|
ns['resellerid'] = userorgid
|
||||||
ns['created_by'] = userorgid
|
ns['created_by'] = user_id
|
||||||
ns['created_at'] = timestampstr()
|
ns['created_at'] = timestampstr()
|
||||||
ns['updated_at'] = timestampstr()
|
ns['updated_at'] = timestampstr()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user