╭ changed ─────────╮ │src/event/User.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │86 // first time we've seen this user: add it to the ordered map the users │ │87 // view paginates through │ │88 if (existing_cursor_maybe == null) { │ │89 - const timestamp_to_user_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "timestamp->user-id")); │ │90 - const timestamp_to_user_id = try DB.SortedMap(.read_write).init(timestamp_to_user_id_cursor); │ │89 + const created_ts_to_user_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "created-ts->user-id"));│ │90 + const created_ts_to_user_id = try DB.SortedMap(.read_write).init(created_ts_to_user_id_cursor); │ │91 const order_key = evt.orderKey(event_to_write.created_ts, event_id); │ │92 - try timestamp_to_user_id.put(&order_key, .{ .bytes = event_id }); │ │92 + try created_ts_to_user_id.put(&order_key, .{ .bytes = event_id }); │ │93 } │ │94 } else { │ │95 // read the user's name so we can drop its name->id index entry │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 99 _ = try name_to_user_id.remove(hash.hashInt(hash_kind, existing_event.name)); │ │100 │ │101 // drop it from the ordered map using its recorded creation timestamp │ │102 - const timestamp_to_user_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "timestamp->user-id")); │ │103 - const timestamp_to_user_id = try DB.SortedMap(.read_write).init(timestamp_to_user_id_cursor); │ │102 + const created_ts_to_user_id_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "created-ts->user-id"));│ │103 + const created_ts_to_user_id = try DB.SortedMap(.read_write).init(created_ts_to_user_id_cursor); │ │104 const order_key = evt.orderKey(existing_event.created_ts, event_id); │ │105 - _ = try timestamp_to_user_id.remove(&order_key); │ │105 + _ = try created_ts_to_user_id.remove(&order_key); │ │106 } │ │107 │ │108 if (!try event_id_to_user.remove(user_key)) return error.EventNotFound; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯