╭ changed ───────────────╮ │src/event/Attachment.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │24 // the moment keys `evt.merge` reads and writes for this kind │ │25 pub const merge_policy: evt.MergePolicy = .target_wins; │ │26 pub const record_map_key = "event-id->attachment"; │ │27 -pub const id_set_key = "attachment-id-set"; │ │27 +pub const all_id_set_key = "attachment-id-set"; │ │28 │ │29 // the index a parent event's view reads │ │30 pub const parent_id_to_attachment_id_set_key = "parent-id->attachment-id-set";│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │101 try evt.indexEvent(DB, hash_kind, haxy_moment, event_id, .attach, existing_record_maybe, record_to_write);│ │102 │ │103 if (existing_cursor_maybe == null) { │ │104 - const attachment_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key)); │ │104 + const attachment_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, all_id_set_key)); │ │105 const attachment_id_set = try DB.SortedSet(.read_write).init(attachment_id_set_cursor); │ │106 try attachment_id_set.put(&evt.orderKeyDesc(record_to_write.created_order, event_id)); │ │107 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯