fix: Add assignment reason for round robin reassignments (#19199)
* Add `RR_REASSIGNED` to schema * Handle recording reassigned manual vs rr * Pass manual assignment prop to `AssignmentReasonRecorder` * Add log to determine who is doing the reassignment * RR reassign - add initializing log * Record assignment reason when reassigning via rr * Add `reassignedById` in trpc endpoint * Add `reassignedById` param in api v2 endpoint * Migration to add `RR_REASSIGNED`
This commit is contained in:
1 parent
e215786afb
commit
122af4538d
8 files changed
+42
-4
No files matched your search
@@ -23,7 +23,11 @@ export const roundRobinReassignHandler = async ({ ctx, input }: RoundRobinReassi
|
||||
throw new TRPCError({ code: "FORBIDDEN", message: "You do not have permission" });
|
||||
}
|
||||
|
||||
return await roundRobinReassignment({ bookingId, orgId: ctx.user.organizationId });
|
||||
return await roundRobinReassignment({
|
||||
bookingId,
|
||||
orgId: ctx.user.organizationId,
|
||||
reassignedById: ctx.user.id,
|
||||
});
|
||||
};
|
||||
|
||||
export default roundRobinReassignHandler;
|
||||
Reference in new issue
Block a user