Skip to content

Commit a36df1c

Browse files
committed
fix(v1-contexts)!: Changing status by code instead of id, because id is not available in CRM's REST API
1 parent 5e96cda commit a36df1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/v1-contexts/src/common/order/card.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ export const actions: ActionSchema<MethodList> = {
503503
},
504504
'changeItemStatus': {
505505
accepts: cortegeOf(
506-
[isNumber, isNumber],
507-
['index', 'statusId']
506+
[isNumber, isString],
507+
['index', 'statusCode']
508508
),
509509
expects: isVoid,
510510
},

packages/v1-contexts/types/order/card.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export type MethodList = {
5151
percent: number | undefined;
5252
}) => void;
5353
changeItemQuantity: (index: number, quantity: number) => void;
54-
changeItemStatus: (index: number, statusId: number) => void;
54+
changeItemStatus: (index: number, statusCode: string) => void;
5555
removeItem: (index: number) => void;
5656
}
5757

0 commit comments

Comments
 (0)