Skip to content

Commit

Permalink
Update customer search API
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoAdamek committed Aug 1, 2024
1 parent a5b5bbf commit e4a44c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tigerbay",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"description": "API Client library for TigerBay",
"main": "lib/client.js",
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion src/models/customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class Api extends APIGroup {

const query = qs.stringify({search: params})

return (await this.axios.get<Array<Customer>>(`/sales/customers/search?${query}`)).data
return (await this.axios.get<Array<Customer>>(`/sales/customers?${query}`)).data
}

public async find(id: number): Promise<Customer> {
Expand Down

0 comments on commit e4a44c8

Please sign in to comment.