diff --git a/src/MyPrayerJournal.Api/Data.fs b/src/MyPrayerJournal.Api/Data.fs index 9d2c112..0c50846 100644 --- a/src/MyPrayerJournal.Api/Data.fs +++ b/src/MyPrayerJournal.Api/Data.fs @@ -126,8 +126,8 @@ module Data = .ToListAsync() return jrnl + |> Seq.map (fun r -> r.history <- []; r.notes <- []; r) |> List.ofSeq - |> List.map (fun r -> r.history <- []; r.notes <- []; r) } /// Save changes in the current document session @@ -166,7 +166,9 @@ module Data = .Where(fun x -> x.Id = (RequestId.toString reqId) && x.userId = userId) .ProjectInto() .FirstOrDefaultAsync () - return Option.fromObject req + return + Option.fromObject req + |> Option.map (fun r -> r.history <- []; r.notes <- []; r) } /// Update the recurrence for a request diff --git a/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj b/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj index b2846d5..f5f20a6 100644 --- a/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj +++ b/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 2.1.2.0 + 2.1.4.0 @@ -14,17 +14,17 @@ - + - - - - + + + + - + diff --git a/src/app/package.json b/src/app/package.json index 68d0430..17e6bb7 100644 --- a/src/app/package.json +++ b/src/app/package.json @@ -1,6 +1,6 @@ { "name": "my-prayer-journal", - "version": "2.1.3", + "version": "2.1.4", "description": "myPrayerJournal - Front End", "author": "Daniel J. Summers ", "private": true,