Skip to content

Commit

Permalink
fix: make partial update LBID possible (#569)
Browse files Browse the repository at this point in the history
Signed-off-by: Hung-Han (Henry) Chen <[email protected]>
  • Loading branch information
chenhunghan authored Feb 7, 2025
1 parent 05efcc5 commit f06fe9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BusinessService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export const allowedUpdateBusinessKeys: Array<string> = [
];

function validateUpdateBusinessKeys(
businessObject: Business,
businessObject: Partial<Business>,
allowedUpdateBusinessKeys: Array<string>,
) {
const validatedObject = Object.entries(businessObject).reduce((acc, [key, value]) => {
Expand Down Expand Up @@ -808,7 +808,7 @@ class BusinessService extends Base {
/**
* Update an existing business ("Lens Business ID").
*/
async updateOne(id: string, business: Business): Promise<Business> {
async updateOne(id: string, business: Partial<Business>): Promise<Business> {
const { apiEndpointAddress, fetch } = this.lensPlatformClient;

const url = `${apiEndpointAddress}/businesses/${id}`;
Expand Down

0 comments on commit f06fe9c

Please sign in to comment.