From e4a44c8d9d59620606bacd044235d64e2f4afef4 Mon Sep 17 00:00:00 2001 From: Leo Adamek Date: Thu, 1 Aug 2024 14:55:58 +0100 Subject: [PATCH] Update customer search API --- package.json | 2 +- src/models/customers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9b79b21..c5be9b0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/models/customers.ts b/src/models/customers.ts index d9d9179..1a99074 100644 --- a/src/models/customers.ts +++ b/src/models/customers.ts @@ -85,7 +85,7 @@ export class Api extends APIGroup { const query = qs.stringify({search: params}) - return (await this.axios.get>(`/sales/customers/search?${query}`)).data + return (await this.axios.get>(`/sales/customers?${query}`)).data } public async find(id: number): Promise {