mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 13:19:48 +02:00
Better sync log
This commit is contained in:
@@ -72,7 +72,7 @@ public class LibraryConnectorController(LibraryContext context) : Controller
|
||||
|
||||
context.LibraryConnectors.Add(connector);
|
||||
|
||||
if(await context.Sync(HttpContext.RequestAborted) is { success: false } result)
|
||||
if(await context.Sync(HttpContext.RequestAborted, GetType()) is { success: false } result)
|
||||
return TypedResults.InternalServerError(result.exceptionMessage);
|
||||
return TypedResults.Created(string.Empty, connector.Key);
|
||||
}
|
||||
@@ -95,7 +95,7 @@ public class LibraryConnectorController(LibraryContext context) : Controller
|
||||
|
||||
context.LibraryConnectors.Remove(connector);
|
||||
|
||||
if(await context.Sync(HttpContext.RequestAborted) is { success: false } result)
|
||||
if(await context.Sync(HttpContext.RequestAborted, GetType()) is { success: false } result)
|
||||
return TypedResults.InternalServerError(result.exceptionMessage);
|
||||
return TypedResults.Ok();
|
||||
}
|
||||
|
Reference in New Issue
Block a user