╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │826 var second_password_hash_buf: [evt.User.password_hash_max_len]u8 = undefined; │ │827 const second_password_hash = try evt.User.hashPassword("Tr0ub4dor&3", &second_password_hash_buf, io);│ │828 │ │829 - const events_to_consume = [_]evt.Event{ │ │829 + const events_to_consume = [_]evt.EventWithId{ │ │830 .{ │ │831 .id = std.fmt.bytesToHex(user_event_id, .lower), │ │832 - .data = .{ │ │832 + .event = .{ │ │833 .user = .{ │ │834 .name = "Alice Example", │ │835 .email = "alice@example.test", │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │840 // this event edits the previous one because it has the same id│ │841 .{ │ │842 .id = std.fmt.bytesToHex(user_event_id, .lower), │ │843 - .data = .{ │ │843 + .event = .{ │ │844 .user = .{ │ │845 .name = "Alice Example", │ │846 .email = "alice@example.test", │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │850 }, │ │851 .{ │ │852 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │853 - .data = .{ │ │853 + .event = .{ │ │854 .repo = .{ │ │855 .user_id = &user_event_id, │ │856 .name = "ziglings", │ ╰─────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │917 const user_event = try evt.read(evt.User, Repo.DB, repo_opts.hash, &arena, user_map); │ │918 │ │919 // the password was correctly edited │ │920 - try std.testing.expectEqualStrings(events_to_consume[1].data.user.?.password_hash, user_event.password_hash); │ │920 + try std.testing.expectEqualStrings(events_to_consume[1].event.user.?.password_hash, user_event.password_hash); │ │921 │ │922 // get the map of repos │ │923 const event_id_to_repo_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "event-id->repo")) orelse return error.NotFound;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │947 // remove the repo │ │948 // │ │949 │ │950 - const events_to_consume2 = [_]evt.Event{ │ │950 + const events_to_consume2 = [_]evt.EventWithId{ │ │951 .{ │ │952 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │953 - .data = .{ .repo = null }, │ │953 + .event = .{ .repo = null }, │ │954 }, │ │955 }; │ │956 │ ╰─────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1018 // remove the user │ │1019 // │ │1020 │ │1021 - const events_to_consume3 = [_]evt.Event{ │ │1021 + const events_to_consume3 = [_]evt.EventWithId{ │ │1022 .{ │ │1023 .id = std.fmt.bytesToHex(user_event_id, .lower),│ │1024 - .data = .{ .user = null }, │ │1024 + .event = .{ .user = null }, │ │1025 }, │ │1026 }; │ │1027 │ ╰──────────────────────────────────────────────────────────────────╯