mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
12 lines
374 B
JavaScript
12 lines
374 B
JavaScript
export default async function getContact(request) {
|
|
const contactId = request.params.contactId;
|
|
try {
|
|
const contactCls = new Parse.Query('contracts_Contactbook');
|
|
const contactRes = await contactCls.get(contactId, { useMasterKey: true });
|
|
return contactRes;
|
|
} catch (err) {
|
|
console.log('Err in contracts_Contactbook class ', err);
|
|
throw err;
|
|
}
|
|
}
|