mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
@@ -180,7 +180,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
if (model == null)
|
||||
throw new ArgumentNullException(nameof(model));
|
||||
|
||||
if (!model.ValidateProviderChannelTypes())
|
||||
if (model.Provider.HasValue && !model.ValidateProviderChannelTypes())
|
||||
return BadRequest(new ErrorMessage { Message = "One or more of channels aren't formatted correctly for the given provider!" });
|
||||
|
||||
var query = DatabaseContext.ChatBots.Where(x => x.InstanceId == Instance.Id && x.Id == model.Id).Include(x => x.Channels);
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace Tgstation.Server.Host.Models
|
||||
DiscordChannelId = DiscordChannelId,
|
||||
IsAdminChannel = IsAdminChannel,
|
||||
IsWatchdogChannel = IsWatchdogChannel,
|
||||
IsUpdatesChannel = IsUpdatesChannel,
|
||||
IrcChannel = IrcChannel
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user