╭ changed ──────────╮ │src/event/Issue.zig│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │200 │ │201 const issue = (try readById(repo_kind, repo_opts, io, allocator, &arena, repo, id_bytes)) orelse return error.NotFound;│ │202 │ │207 - var updated = issue; │ │203 + var updated = issue.event; │ │204 switch (change) { │ │205 .status => |status| { │ │210 - if (issue.status == status) return; │ │206 + if (updated.status == status) return; │ │207 updated.status = status; │ │208 }, │ │209 .fields => |fields| { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │231 arena: *std.heap.ArenaAllocator, │ │232 repo: *rp.Repo(repo_kind, repo_opts), │ │233 id_bytes: *const [evt.event_id_size]u8, │ │238 -) !?@This() { │ │234 +) !?Record { │ │235 const DB = evt.EventDB(repo_opts.hash); │ │236 var event_db_maybe: ?evt.LocalEventDB(repo_opts.hash) = if (repo_kind == .git) try evt.LocalEventDB(repo_opts.hash).openReadOnly(io, allocator, repo.core.repo_dir) else null;│ │237 defer if (event_db_maybe) |*event_db| event_db.deinit(io, allocator); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │245 const event_id_to_issue = try DB.HashMap(.read_only).init(event_id_to_issue_cursor); │ │246 const issue_cursor = (try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, id_bytes))) orelse return null;│ │247 const issue_map = try DB.HashMap(.read_only).init(issue_cursor); │ │252 - return try evt.read(@This(), DB, repo_opts.hash, arena, issue_map); │ │248 + return try evt.read(Record, DB, repo_opts.hash, arena, issue_map); │ │249 } │ │250 │ │251 // remove an issue's order key from its tags' `status` sets, pruning entries │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯