|
@@ -76,9 +76,9 @@ export async function bootstrapData({ store }: StoreContext): Promise<void> {
|
|
id: m.id,
|
|
id: m.id,
|
|
name: m.name,
|
|
name: m.name,
|
|
channels: [],
|
|
channels: [],
|
|
- createdInBlock: 1,
|
|
|
|
- createdAt: new Date(),
|
|
|
|
- updatedAt: new Date(),
|
|
|
|
|
|
+ createdInBlock: m.createdInBlock,
|
|
|
|
+ createdAt: new Date(m.createdAt),
|
|
|
|
+ updatedAt: new Date(m.updatedAt),
|
|
})
|
|
})
|
|
)
|
|
)
|
|
await Promise.all(channelCategories.map((m) => store.save<ChannelCategory>(m)))
|
|
await Promise.all(channelCategories.map((m) => store.save<ChannelCategory>(m)))
|
|
@@ -89,9 +89,9 @@ export async function bootstrapData({ store }: StoreContext): Promise<void> {
|
|
id: m.id,
|
|
id: m.id,
|
|
name: m.name,
|
|
name: m.name,
|
|
videos: [],
|
|
videos: [],
|
|
- createdInBlock: 1,
|
|
|
|
- createdAt: new Date(),
|
|
|
|
- updatedAt: new Date(),
|
|
|
|
|
|
+ createdInBlock: m.createdInBlock,
|
|
|
|
+ createdAt: new Date(m.createdAt),
|
|
|
|
+ updatedAt: new Date(m.updatedAt),
|
|
})
|
|
})
|
|
)
|
|
)
|
|
await Promise.all(videoCategories.map((m) => store.save<VideoCategory>(m)))
|
|
await Promise.all(videoCategories.map((m) => store.save<VideoCategory>(m)))
|