Files
Joe Au-YeungGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
06bb994145 fix: Improve wrong assignment report (#27162)
* Pass already fetched booking

* Fetch the assignment reason

* Update tests

* Label as first assignment reason

* Pass single booking object

* Remove unused repository method

* Only pass bookingUid to handler

* Rename booking `assignmentReason` to `assignmentReasonSortedByCreatedAt`

* fix: use renamed assignmentReasonSortedByCreatedAt property

Co-Authored-By: [email protected] <[email protected]>

* Remove take statement

* fix: address Udit's review comments

- Restore BookingAccessService for access control checks
- Rename repository method from findByUidForWrongAssignmentReport to findByUidIncludeUserAndEventTypeTeamAndAttendeesAndAssignmentReason

Co-Authored-By: [email protected] <[email protected]>

* test: update tests to use BookingAccessService mock

Co-Authored-By: [email protected] <[email protected]>

* fix: use latest assignment reason in BookingDetailsSheet for consistency

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-02-11 13:12:21 -05:00

10 lines
357 B
TypeScript

import { z } from "zod";
export const ZReportWrongAssignmentInputSchema = z.object({
bookingUid: z.string(),
correctAssignee: z.union([z.string().email(), z.literal("").transform(() => undefined)]).optional(),
additionalNotes: z.string().min(1),
});
export type TReportWrongAssignmentInputSchema = z.infer<typeof ZReportWrongAssignmentInputSchema>;