@go-avro/avro-js 0.0.2-beta.20 → 0.0.2-beta.21

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.
@@ -28,8 +28,8 @@ export class AvroQueryClient {
28
28
  }
29
29
  return null;
30
30
  };
31
- return this.config.authManager.accessToken().then(token => {
32
- return new Promise((resolve, reject) => {
31
+ return new Promise((resolve, reject) => {
32
+ this.config.authManager.accessToken().then(token => {
33
33
  const cancelErr = checkCancelled();
34
34
  if (cancelErr)
35
35
  return reject(cancelErr);
@@ -313,7 +313,7 @@ export class AvroQueryClient {
313
313
  users: data.users,
314
314
  due_date: data.due_date,
315
315
  };
316
- return this._fetch('POST', `/company/${companyGuid}/bills`, body)
316
+ return this._fetch('POST', `/company/${companyGuid}/bill`, body)
317
317
  .then(response => {
318
318
  if (!response || !Array.isArray(response)) {
319
319
  throw new StandardError(400, 'Invalid bills response');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.20",
3
+ "version": "0.0.2-beta.21",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",