set userFk null in tests

This commit is contained in:
Gerard 2018-10-05 13:06:11 +02:00
parent ead7397bb3
commit c990877bda
2 changed files with 2 additions and 3 deletions

View File

@ -17,8 +17,7 @@
"required": true
},
"userFk": {
"type": "Number",
"required": true
"type": "Number"
},
"action": {
"type": "String",

View File

@ -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);