Skip to content

Commit a8d0301

Browse files
committed
fix: add m2m userId
1 parent e6d7ab4 commit a8d0301

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app-routes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ module.exports = (app) => {
5050
next(new errors.ForbiddenError("You are not allowed to perform this action!"));
5151
} else {
5252
req.authUser.handle = config.M2M_AUDIT_HANDLE;
53+
req.authUser.userId = config.M2M_AUDIT_USERID;
5354
req.userToken = req.headers.authorization.split(" ")[1];
5455
next();
5556
}

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ module.exports = {
9797
DEFAULT_CONFIDENTIALITY_TYPE: process.env.DEFAULT_CONFIDENTIALITY_TYPE || "public",
9898

9999
M2M_AUDIT_HANDLE: process.env.M2M_AUDIT_HANDLE || "tcwebservice",
100+
M2M_AUDIT_USERID: process.env.M2M_AUDIT_USERID || 22838965,
100101

101102
FORUM_TITLE_LENGTH_LIMIT: process.env.FORUM_TITLE_LENGTH_LIMIT || 90,
102103

0 commit comments

Comments
 (0)