We didn't return on a cache miss, resulting in a JSON read error

This commit is contained in:
Timothy Baldridge 2022-01-20 08:00:36 -07:00
parent 1efa5c3a04
commit ce29a02cf3

View File

@ -88,6 +88,7 @@ public class NexusCache : ControllerBase
Response.StatusCode = 200;
Response.ContentType = "application/json";
await JsonSerializer.SerializeAsync(Response.Body, returned, _dtos.Options, cancellationToken: token);
return;
}
await JsonSerializer.SerializeAsync(Response.Body, cached, _dtos.Options, cancellationToken: token);