Adding a check to disable user sync in test when server not available.

This commit is contained in:
mike12345567 2021-11-04 20:28:26 +00:00
parent 94ee13ffc4
commit 6e76a7dd1a
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ const { checkSlashesInUrl } = require("../utilities")
const env = require("../environment") const env = require("../environment")
exports.syncUserInApps = async userId => { exports.syncUserInApps = async userId => {
if (env.isTest()) {
return
}
const request = { headers: {} } const request = { headers: {} }
request.headers[Headers.API_KEY] = env.INTERNAL_API_KEY request.headers[Headers.API_KEY] = env.INTERNAL_API_KEY
if (isTenantIdSet()) { if (isTenantIdSet()) {