@go-avro/avro-js 0.0.2-beta.23 → 0.0.2-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -300,7 +300,7 @@ export class AvroQueryClient {
|
|
|
300
300
|
throw new StandardError(500, `Failed to send email: ${error}`);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
createBill(companyGuid, data) {
|
|
303
|
+
createBill(companyGuid, data, cancelToken) {
|
|
304
304
|
if (!companyGuid) {
|
|
305
305
|
return Promise.reject(new StandardError(400, 'Company GUID is required'));
|
|
306
306
|
}
|
|
@@ -313,7 +313,9 @@ export class AvroQueryClient {
|
|
|
313
313
|
due_date: data.due_date,
|
|
314
314
|
};
|
|
315
315
|
try {
|
|
316
|
-
return this._xhr('POST', `/company/${companyGuid}/bill`, JSON.stringify(body)
|
|
316
|
+
return this._xhr('POST', `/company/${companyGuid}/bill`, JSON.stringify(body), cancelToken, {
|
|
317
|
+
'Content-Type': 'application/json',
|
|
318
|
+
});
|
|
317
319
|
}
|
|
318
320
|
catch (error) {
|
|
319
321
|
throw new StandardError(500, `Failed to create bill: ${error}`);
|