Skip to content

Commit

Permalink
Missing some changes in MockServices to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Oct 6, 2023
1 parent dd3d48d commit 19c826b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3011,8 +3011,8 @@ class MockCampaign() {
e.state == Scheduled || e.state == Running
}

def get(id: CampaignEventId): IOResult[CampaignEvent] = {
items.get.map(_.get(id)).notOptional(s"Campaign event not found: ${id.value}")
def get(id: CampaignEventId): IOResult[Option[CampaignEvent]] = {
items.get.map(_.get(id))
}
def saveCampaignEvent(c: CampaignEvent): IOResult[CampaignEvent] = {
for {
Expand Down

0 comments on commit 19c826b

Please sign in to comment.