Add downgrade possibility in update command

This commit is contained in:
Archi
2024-03-20 04:16:22 +01:00
parent 469b1571e1
commit 4c2a786e54
5 changed files with 47 additions and 43 deletions

View File

@@ -182,7 +182,7 @@ public sealed class ASFController : ArchiController {
return BadRequest(new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.ErrorIsInvalid, nameof(request.Channel))));
}
(bool success, string? message, Version? version) = await Actions.Update(request.Channel).ConfigureAwait(false);
(bool success, string? message, Version? version) = await Actions.Update(request.Channel, request.Forced).ConfigureAwait(false);
if (string.IsNullOrEmpty(message)) {
message = success ? Strings.Success : Strings.WarningFailed;