fix: create contact API not working

This commit is contained in:
prafull-opensignlabs
2024-05-22 19:46:09 +05:30
parent d75c1d7c0c
commit 950b74789c
@@ -128,7 +128,7 @@ export default async function createContact(request, response) {
userId: userRes.objectId,
};
await axios.post(roleurl, body, { headers: headers });
contactQuery.set('CreatedBy', userPtr.objectId);
contactQuery.set('CreatedBy', userPtr);
contactQuery.set('UserId', {
__type: 'Pointer',
className: '_User',