Skip to content

Commit 93f18a8

Browse files
committed
Fix status = undefined when parsing a EQPStatusUpdateEvent
1 parent 6314385 commit 93f18a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/CallbackService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class CallbackService {
3232
return {
3333
item: await this.eqp.packageService.getPackageByItemId(updateInfo.item_id),
3434
submission: await this.eqp.packageService.getPackageBySubmissionId(updateInfo.submission_id),
35-
status: updateInfo.current_status,
35+
status: updateInfo.eqp_status,
3636
flow: updateInfo.eqp_flow
3737
};
3838
}

src/types/callbacks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface EQPStatusUpdateEvent extends RawCallbackEvent {
1717
submission_id: string;
1818
item_id: string;
1919
eqp_flow: string;
20-
current_status: string;
20+
eqp_status: string;
2121
};
2222
}
2323

0 commit comments

Comments
 (0)