fix: expose missing createdAt and updatedAt fields from flow
This commit is contained in:
@@ -6,6 +6,8 @@ const flowSerializer = (flow) => {
|
||||
name: flow.name,
|
||||
active: flow.active,
|
||||
status: flow.status,
|
||||
createdAt: flow.createdAt.getTime(),
|
||||
updatedAt: flow.updatedAt.getTime(),
|
||||
};
|
||||
|
||||
if (flow.steps?.length > 0) {
|
||||
|
@@ -27,6 +27,8 @@ describe('flowSerializer', () => {
|
||||
name: flow.name,
|
||||
active: flow.active,
|
||||
status: flow.status,
|
||||
createdAt: flow.createdAt.getTime(),
|
||||
updatedAt: flow.updatedAt.getTime(),
|
||||
};
|
||||
|
||||
expect(flowSerializer(flow)).toEqual(expectedPayload);
|
||||
|
Reference in New Issue
Block a user