mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-22 04:27:19 +01:00
Remember the basics:
Gone for entities that can be deleted NotFound for entities that can't
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
@@ -82,7 +82,7 @@ namespace Tgstation.Server.Host.Authority
|
||||
userGroup = await userGroupsDataLoader.LoadAsync(id, cancellationToken);
|
||||
|
||||
if (userGroup == null)
|
||||
return NotFound<UserGroup>();
|
||||
return Gone<UserGroup>();
|
||||
|
||||
return new AuthorityResponse<UserGroup>(userGroup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user