Fix
This commit is contained in:
@@ -37,7 +37,7 @@ export class TodoRepositoryService {
|
|||||||
add(todo: Todo) {
|
add(todo: Todo) {
|
||||||
return Effect.gen(this, function*() {
|
return Effect.gen(this, function*() {
|
||||||
if (Option.isSome(todo.id))
|
if (Option.isSome(todo.id))
|
||||||
return yield* Effect.fail(new TodoHasID({ todo }))
|
return yield* new TodoHasID({ todo })
|
||||||
|
|
||||||
const id: string = crypto.randomUUID()
|
const id: string = crypto.randomUUID()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user