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