mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-20 06:35:54 +02:00
fix: quick send not working
This commit is contained in:
@@ -247,15 +247,17 @@ export default async function createBatchDocs(request) {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
const response = await axios.post('batch', { requests: requests[0] }, parseConfig);
|
||||
// // Handle the batch query response
|
||||
const response = await axios.post('batch', { requests: requests }, parseConfig);
|
||||
// Handle the batch query response
|
||||
// console.log('Batch query response:', response.data);
|
||||
if (response.data && response.data.length > 0) {
|
||||
const document = Documents?.[0];
|
||||
const updateDocuments = {
|
||||
...document,
|
||||
objectId: response.data[0]?.success?.objectId,
|
||||
createdAt: response.data[0]?.success?.createdAt,
|
||||
};
|
||||
deductcount(response.data.length, resExt.id, _resSub);
|
||||
deductcount(response.data.length, resExt.id);
|
||||
sendMail(updateDocuments, sessionToken);
|
||||
return 'success';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user