╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │648 try std.testing.expectError(error.NotFound, evt.currentMoment(repo_opts, &target));│ │649 │ │650 // │ │651 - // post the metadata and revision pointer │ │651 + // publish the metadata and revision pointer │ │652 // │ │653 │ │654 - try pch.post(repo_opts, io, allocator, &admin, &target, draft_path, .{ │ │654 + try pch.publish(repo_opts, io, allocator, &admin, &target, draft_path, .{ │ │655 .id = patch_id_hex, │ │656 .user_id = user_id, │ │657 .repo_id = repo_id, │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │658 .author = author, │ │659 .timestamp = 3, │ │660 }); │ │661 - try pch.post(repo_opts, io, allocator, &admin, &target, draft_path, .{ │ │661 + try pch.publish(repo_opts, io, allocator, &admin, &target, draft_path, .{│ │662 .id = patch_id_hex, │ │663 .user_id = user_id, │ │664 .repo_id = repo_id, │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │676 │ │677 _ = arena.reset(.retain_capacity); │ │678 const admin_moment = try evt.currentMoment(evt.admin_repo_opts, &admin); │ │679 - const posted_fork = (try evt.Fork.readById(evt.AdminDB, evt.admin_repo_opts.hash, admin_moment, &arena, &patch_id)) orelse return error.NotFound; │ │680 - try std.testing.expect(!posted_fork.removed); │ │681 - try std.testing.expectEqual(.posted, posted_fork.event.stage); │ │679 + const published_fork = (try evt.Fork.readById(evt.AdminDB, evt.admin_repo_opts.hash, admin_moment, &arena, &patch_id)) orelse return error.NotFound;│ │680 + try std.testing.expect(!published_fork.removed); │ │681 + try std.testing.expectEqual(.publish, published_fork.event.stage); │ │682 const draft_key = evt.Fork.draftKey(&repo_id, &user_id); │ │683 try std.testing.expectEqual(0, try indexedForkCount(admin_moment, evt.Fork.repo_user_to_draft_id_set_key, &draft_key)); │ │684 try std.testing.expectEqual(1, try indexedForkCount(admin_moment, evt.Fork.user_id_to_fork_id_set_key, &user_id)); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯