mirror of
https://github.com/spacebarchat/server.git
synced 2026-09-25 17:44:57 +00:00
Experimental: try using JsonPolymorphic rather than custom JsonConvert logic
This commit is contained in:
@@ -29,7 +29,7 @@ public class Op14Controller(ILogger<Op12Controller> logger, SpacebarAspNetAuthen
|
||||
public async IAsyncEnumerable<ContentlessReplicationMessage> DoLazyRequest([FromBody] LazyRequest payload)
|
||||
{
|
||||
var user = await TraceResult.TraceAsync("getAuthUser", () => authService.GetCurrentUserAsync(Request));
|
||||
var session = await TraceResult.TraceAsync("getAuthSession", () => authService.GetCurrentSessionAsync(Request));
|
||||
// var session = await TraceResult.TraceAsync("getAuthSession", () => authService.GetCurrentSessionAsync(Request));
|
||||
|
||||
if (!await db.Members.AsNoTracking().AnyAsync(m => m.GuildId == payload.GuildId && m.Id == user.Result.Id))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user