╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────╮ │866 }, │ │867 .{ │ │868 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │869 + .kind = .repo, │ │870 .data = .{ │ │871 .repo = .{ │ │872 .user_id = &user_event_id, │ ╰─────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │934 const user = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), user_map, .user); │ │935 │ │936 // the password was correctly edited │ │921 - try std.testing.expectEqualStrings(events_to_consume[1].data.user.?.password_hash, user.user.?.password_hash); │ │937 + try std.testing.expectEqualStrings(events_to_consume[1].data.?.user.password_hash, user.user.password_hash); │ │938 │ │939 // get the map of repos │ │940 const event_id_to_repo_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "event-id->repo")) orelse return error.NotFound;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │945 const repo_map = try Repo.DB.HashMap(.read_only).init(repo_cursor); │ │946 const repo_event = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), repo_map, .repo); │ │947 │ │932 - try std.testing.expectEqualSlices(u8, &user_event_id, repo_event.repo.?.user_id); │ │933 - try std.testing.expectEqualStrings("ziglings", repo_event.repo.?.name); │ │948 + try std.testing.expectEqualSlices(u8, &user_event_id, repo_event.repo.user_id); │ │949 + try std.testing.expectEqualStrings("ziglings", repo_event.repo.name); │ │950 │ │951 // get the repos created by the user │ │952 const user_id_to_repos_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "user-id->repos")) orelse return error.NotFound;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │967 const events_to_consume2 = [_]evt.Event{ │ │968 .{ │ │969 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │954 - .data = .{ │ │955 - .repo = null, │ │956 - }, │ │970 + .kind = .repo, │ │971 + .data = null, │ │972 }, │ │973 }; │ │974 │ ╰─────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1039 const events_to_consume3 = [_]evt.Event{ │ │1040 .{ │ │1041 .id = std.fmt.bytesToHex(user_event_id, .lower),│ │1027 - .data = .{ │ │1028 - .user = null, │ │1029 - }, │ │1042 + .kind = .user, │ │1043 + .data = null, │ │1044 }, │ │1045 }; │ │1046 │ ╰──────────────────────────────────────────────────────────────────╯