fix: getaddrinfo ENOTFOUND while creating admin

This commit is contained in:
prafull-opensignlabs
2024-07-30 16:53:36 +05:30
parent 44754095fb
commit 299648b8e0
32 changed files with 99 additions and 52 deletions
@@ -1,10 +1,11 @@
import axios from 'axios';
import { cloudServerUrl } from '../../Utils.js';
export default async function callWebhook(request) {
const event = request.params.event;
const body = request.params.body;
const docId = body.objectId;
const contactId = request.params.contactId;
const serverUrl = process.env.SERVER_URL;
const serverUrl = cloudServerUrl; //process.env.SERVER_URL;
const appId = process.env.APP_ID;
const userRes = await axios.get(serverUrl + '/users/me', {
headers: {