diff --git a/_project/api/_src/Usecases/Blog.Controllers.ts b/_project/api/_src/Usecases/Blog.Controllers.ts index 3d7b6ed3..602080b1 100644 --- a/_project/api/_src/Usecases/Blog.Controllers.ts +++ b/_project/api/_src/Usecases/Blog.Controllers.ts @@ -64,8 +64,8 @@ const PublishPost = blog.matchPublishPost( // while operation is running... (_opId) => Effect - .suspend(() => events.publish(new BogusEvent({}))) - .schedule(Schedule.spaced(DUR.seconds(1))) + .suspend(() => events.publish(new BogusEvent())) + .schedule(Schedule.spaced(Duration.seconds(1))) ) )