fix no data found on signers login page

This commit is contained in:
RaktimaNXG
2023-11-21 13:36:42 +05:30
parent f712532793
commit 2a55c03788
3 changed files with 7 additions and 4 deletions
@@ -274,12 +274,15 @@ export const contractUsers = async (email) => {
};
//function for getting contracts_contactbook details
export const contactBook = async (objectId) => {
export const contactBook = async (objectId, isUser) => {
const condition = isUser
? `{"UserId": {"__type": "Pointer","className": "_User", "objectId":"${objectId}"}}`
: `{"objectId":"${objectId}"}`;
const result = await axios
.get(
`${localStorage.getItem("baseUrl")}classes/${localStorage.getItem(
"_appName"
)}_Contactbook?where={"UserId": {"__type": "Pointer","className": "_User", "objectId":"${objectId}"}}`,
)}_Contactbook?where=${condition}`,
{
headers: {
"Content-Type": "application/json",