mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-20 06:35:54 +02:00
fix: not able to get response of invoices
This commit is contained in:
@@ -14,10 +14,13 @@ export default async function getInvoices(request) {
|
||||
});
|
||||
const userId = userRes.data && userRes.data.objectId;
|
||||
if (userId) {
|
||||
if (!extUserId) {
|
||||
return { status: 'error', result: 'Please provide parameter!' };
|
||||
}
|
||||
const invoiceCls = new Parse.Query('contracts_Invoices');
|
||||
invoiceCls.equalTo('ExtUserPtr', {
|
||||
__type: 'Pointer',
|
||||
className: 'contracts_User',
|
||||
className: 'contracts_Users',
|
||||
objectId: extUserId,
|
||||
});
|
||||
invoiceCls.limit(limit);
|
||||
|
||||
Reference in New Issue
Block a user