╭ changed ─────────╮ │src/event/Repo.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────╮ │204 return .{ .repo = repo, .event_id = repo_id };│ │205 } │ │206 │ │207 +// a deleted repo reads as missing │ │208 pub fn readById( │ │209 comptime DB: type, │ │210 comptime hash_kind: hash.HashKind, │ ╰───────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │215 const records_cursor = try haxy_moment.getCursor(hash.hashInt(hash_kind, record_map_key)) orelse return null;│ │216 const records = try DB.HashMap(.read_only).init(records_cursor); │ │217 const record_cursor = try records.getCursor(hash.hashInt(hash_kind, id)) orelse return null; │ │217 - return try evt.read(Record, DB, hash_kind, arena, try DB.HashMap(.read_only).init(record_cursor)); │ │218 + const record = try evt.read(Record, DB, hash_kind, arena, try DB.HashMap(.read_only).init(record_cursor)); │ │219 + return if (record.removed) null else record; │ │220 } │ │221 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯