Skip to content

Commit

Permalink
offers fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnata committed May 31, 2021
1 parent e9ee1d3 commit 32bec6b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/api/offers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Offer from '../models/Offer';
export default class ApiOffers {
private api;
constructor(api: ApiClient);
list(page?: number, limit?: number): any;
list(business_id: string, page?: number, limit?: number): any;
view(id: string): any;
/**
* Filter results by any property, through a query.
Expand Down
4 changes: 2 additions & 2 deletions dist/api/offers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/api/offers.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "govivant-sdk",
"version": "1.0.18",
"version": "1.0.19",
"description": "An API client to use GoVivant services",
"main": "./dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/api/offers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default class ApiOffers {
this.api = api
}

list(page: number = 1, limit: number = 15) {
return this.api.get(`/claptable/offers?page=${page}&limit=${limit}`)
list(business_id: string, page: number = 1, limit: number = 15) {
return this.api.get(`/claptable/offers/${business_id}?page=${page}&limit=${limit}`)
}
view(id: string) {
return this.api.get(`/claptable/offers/${id}`)
Expand Down

0 comments on commit 32bec6b

Please sign in to comment.