open source update. Fixed Database filters, added docs page

This commit is contained in:
2022-04-03 13:13:59 -04:00
parent 932b3b9e16
commit 73cc82709c
17 changed files with 273 additions and 37 deletions
+3 -6
View File
@@ -1,8 +1,5 @@
using System.Net.Http.Json;
using System.Net.Http.Json;
using Model.Immortal.Notes;
using Model.Work.Git;
#if NO_SQL
@@ -11,7 +8,7 @@ using Contexts;
using Microsoft.EntityFrameworkCore;
#endif
namespace Services.Work;
namespace Services.Development;
public class NoteService : INoteService {
private readonly HttpClient httpClient;
@@ -52,7 +49,7 @@ public class NoteService : INoteService {
return;
}
NoteModels = (await httpClient.GetFromJsonAsync<NoteModel[]>("generated/NoteModels.json")).ToList();
NoteModels = (await httpClient.GetFromJsonAsync<NoteModel[]>("generated/NoteModels.json") ?? Array.Empty<NoteModel>()).ToList();
isLoaded = true;