set userFk null in tests
This commit is contained in:
parent
ead7397bb3
commit
c990877bda
|
@ -17,8 +17,7 @@
|
|||
"required": true
|
||||
},
|
||||
"userFk": {
|
||||
"type": "Number",
|
||||
"required": true
|
||||
"type": "Number"
|
||||
},
|
||||
"action": {
|
||||
"type": "String",
|
||||
|
|
|
@ -127,7 +127,7 @@ module.exports = function(Self) {
|
|||
|
||||
|
||||
let userFk;
|
||||
if (!loopBackContext) userFk = process.env.NODE_ENV ? 1765 : 111;
|
||||
if (!loopBackContext) userFk = null;
|
||||
else userFk = loopBackContext.active.accessToken.userId;
|
||||
|
||||
let action = setActionType(ctx);
|
||||
|
|
Loading…
Reference in New Issue