remove contracts_contactbook class query from placeholderSign.js

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