mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-29 08:00:19 +01:00
Merge pull request #701 from Cyberboss/EndlessBeta
More minor configuration fixes
This commit is contained in:
@@ -74,7 +74,7 @@ namespace Tgstation.Server.Host.Components.StaticFiles
|
||||
/// <param name="data">The data to write. If <see langword="null"/>, the file is deleted</param>
|
||||
/// <param name="previousHash">The hash any existing file must match in order for the write to succeed</param>
|
||||
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the operation. Usage may result in partial writes</param>
|
||||
/// <returns>A <see cref="Task{TResult}"/> resulting in the updated <see cref="ConfigurationFile"/></returns>
|
||||
/// <returns>A <see cref="Task{TResult}"/> resulting in the updated <see cref="ConfigurationFile"/> or <see langword="null"/> if the write failed due to <see cref="ConfigurationFile.LastReadHash"/> conflicts</returns>
|
||||
Task<ConfigurationFile> Write(string configurationRelativePath, ISystemIdentity systemIdentity, byte[] data, string previousHash, CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
if (newFile == null)
|
||||
return Conflict(new ErrorMessage
|
||||
{
|
||||
Message = ""
|
||||
Message = "This file has been updated since you last viewed it!"
|
||||
});
|
||||
|
||||
newFile.Content = null;
|
||||
@@ -171,6 +171,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
|
||||
try
|
||||
{
|
||||
model.IsDirectory = true;
|
||||
return await instanceManager.GetInstance(Instance).Configuration.CreateDirectory(model.Path, AuthenticationContext.SystemIdentity, cancellationToken).ConfigureAwait(false) ? (IActionResult)Json(model) : StatusCode((int)HttpStatusCode.Created, model);
|
||||
}
|
||||
catch (NotImplementedException)
|
||||
|
||||
Reference in New Issue
Block a user