This commit is contained in:
@@ -83,6 +83,11 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
log.LogInformation($"ServerState change request by user {UserNameFromContext.Name(HttpContext.Items)} from current state of \"{serverState.GetState().ToString()}\" to \"{desiredState.ToString()}-{state.Reason}\"");
|
||||
|
||||
if (desiredState == ApiServerState.ServerState.MigrateMode)
|
||||
ServerBootConfig.MIGRATING = true;
|
||||
else
|
||||
ServerBootConfig.MIGRATING = false;
|
||||
|
||||
//Add a message if user didn't enter one so other users know why they can't login
|
||||
if (string.IsNullOrWhiteSpace(state.Reason))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user