Skip to content

Commit

Permalink
update zig, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomsik committed Apr 16, 2024
1 parent c3a0756 commit aeb4a36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

.dependencies = .{
.fridge = .{
.url = "https://github.com/cztomsik/fridge/archive/96977fc.tar.gz",
.hash = "122011df1b4686c60fba89a3d87b83e975da52c0a8d8a2e98682cdc3b096df30820a",
.url = "https://github.com/cztomsik/fridge/archive/29edd70.tar.gz",
.hash = "1220ed7d1e37d1b9e7cbf63e09fe17dc4cc9c6a07a867130c3cae33978cbd8d8da68",
},

.tokamak = .{
.url = "https://github.com/cztomsik/tokamak/archive/3615b4e.tar.gz",
.hash = "1220f9b669157f6b99e44f47894c39f2ee8b316d32c16089e2378d10901040217ae9",
.url = "https://github.com/cztomsik/tokamak/archive/68c80d6.tar.gz",
.hash = "122032d6c95983590d41ecf5c4c302ca6a986ac44468319d4cde675dee2f612f7444",
},
},
.paths = .{
Expand Down
4 changes: 1 addition & 3 deletions src/api/chat.zig
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ pub fn @"PUT /chat/:id/messages/:message_id"(db: *fr.Session, id: u32, message_i
}

pub fn @"DELETE /chat/:id/messages/:message_id"(db: *fr.Session, id: u32, message_id: u32) !void {
try db.exec(
fr.delete(schema.ChatMessage).where(.{ .id = message_id, .chat_id = id }),
);
try db.deleteBy(schema.ChatMessage, .{ .id = message_id, .chat_id = id });
}

pub fn @"DELETE /chat/:id"(db: *fr.Session, id: u32) !void {
Expand Down
2 changes: 1 addition & 1 deletion src/api/download.zig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn @"POST /download"(app: *ava.App, client: *std.http.Client, res: *tk.Respo
var req = try client.open(.GET, try std.Uri.parse(params.url), .{ .server_header_buffer = &head });
defer req.deinit();

try req.send(.{});
try req.send();
try req.wait();

if (req.response.status != .ok) {
Expand Down

0 comments on commit aeb4a36

Please sign in to comment.