fix: expose missing createdAt and updatedAt fields from flow

This commit is contained in:
Rıdvan Akca
2024-04-12 16:46:21 +02:00
parent e5be8d3ba7
commit ab37250d5d
7 changed files with 13 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ const getFlowMock = async (flow, steps) => {
id: flow.id,
name: flow.name,
status: flow.active ? 'published' : 'draft',
createdAt: flow.createdAt.getTime(),
updatedAt: flow.updatedAt.getTime(),
steps: steps.map((step) => ({
appKey: step.appKey,
iconUrl: step.iconUrl,