Made queries.zig look significantly nicer
There's a little bit of weird stuff happening, but holy cannoli, that's so much easier to maintain and parse
This commit is contained in:
parent
d638fa66c5
commit
62590fee37
7 changed files with 87 additions and 140 deletions
|
|
@ -5,7 +5,7 @@ const queries = @import("../../queries.zig");
|
|||
pub fn index(request: *jetzig.Request) !jetzig.View {
|
||||
var root = try request.data(.object);
|
||||
|
||||
const scrobbles = try queries.entityQueryResult(request, queries.generateQuery(.scrobble, .entities), .{}, .array);
|
||||
const scrobbles = try queries.entityQueryResult(request, queries.loadQuery(.scrobble, .entities), .{});
|
||||
try root.put("scrobbles", scrobbles);
|
||||
|
||||
return request.render(.ok);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue