Adding a check to disable user sync in test when server not available.
This commit is contained in:
parent
94ee13ffc4
commit
6e76a7dd1a
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue