From 95f2dcb9f302c90bb37ee9e074cd7e8bb0d19ac6 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 25 Mar 2024 17:02:47 +0800 Subject: [PATCH] updates --- MyApp.ServiceInterface/Data/QuestionsProvider.cs | 4 ++-- MyApp.ServiceInterface/JobServices.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MyApp.ServiceInterface/Data/QuestionsProvider.cs b/MyApp.ServiceInterface/Data/QuestionsProvider.cs index 95b4a54..056f423 100644 --- a/MyApp.ServiceInterface/Data/QuestionsProvider.cs +++ b/MyApp.ServiceInterface/Data/QuestionsProvider.cs @@ -34,6 +34,8 @@ public List GetAnswerModelsFor(string? userName) { WriteIndented = true }; + + public string ToJson(T obj) => System.Text.Json.JsonSerializer.Serialize(obj, SystemJsonOptions); public QuestionFiles GetLocalQuestionFiles(int id) { @@ -80,8 +82,6 @@ public static string GetMetaPath(int id) return path; } - public string ToJson(T obj) => System.Text.Json.JsonSerializer.Serialize(obj, SystemJsonOptions); - public async Task SaveFileAsync(string file, string contents) { await Task.WhenAll( diff --git a/MyApp.ServiceInterface/JobServices.cs b/MyApp.ServiceInterface/JobServices.cs index ea77318..716df7e 100644 --- a/MyApp.ServiceInterface/JobServices.cs +++ b/MyApp.ServiceInterface/JobServices.cs @@ -57,7 +57,7 @@ public object Any(RestoreModelQueues request) $"{pendingJobs.Count} pending jobs in queue", $"{incompleteJobs.Count} incomplete jobs in database", $"{startedJobs.Count} jobs being processed by workers", - $"{missingJobs.Count} missing and ${lostJobs.Count} lost jobs re-added to queue", + $"{missingJobs.Count} missing and {lostJobs.Count} lost jobs re-added to queue", ] }; }