feat: correo via banco mail, rol supervisor y lint en cero
This commit is contained in:
1 parent
2502de4e06
commit
b1cddbac6c
15 files changed
+677
-107
No files matched your search
@@ -32,7 +32,8 @@ export default function TicketDetailPage() {
|
||||
const params = useParams();
|
||||
const id = Number(params.id);
|
||||
const { user } = useAuth();
|
||||
const isTeam = user?.role === "admin" || user?.role === "agent";
|
||||
const isTeam =
|
||||
user?.role === "admin" || user?.role === "agent" || user?.role === "supervisor";
|
||||
|
||||
const [ticket, setTicket] = useState<Ticket | null>(null);
|
||||
const [comments, setComments] = useState<Comment[]>([]);
|
||||
@@ -92,8 +93,8 @@ export default function TicketDetailPage() {
|
||||
try {
|
||||
await updateTicketStatus(id, newStatus);
|
||||
await refreshTicket();
|
||||
} catch (err: any) {
|
||||
setError(err.message || "No se pudo cambiar el estado");
|
||||
} catch (err: unknown) {
|
||||
setError(err instanceof Error ? err.message : "No se pudo cambiar el estado");
|
||||
} finally {
|
||||
setActing(false);
|
||||
}
|
||||
@@ -107,8 +108,8 @@ export default function TicketDetailPage() {
|
||||
try {
|
||||
await assignTicket(id, ticket.assigneeId ?? 0, groupId);
|
||||
await refreshTicket();
|
||||
} catch (err: any) {
|
||||
setError(err.message || "No se pudo asignar el departamento");
|
||||
} catch (err: unknown) {
|
||||
setError(err instanceof Error ? err.message : "No se pudo asignar el departamento");
|
||||
} finally {
|
||||
setActing(false);
|
||||
}
|
||||
@@ -126,8 +127,8 @@ export default function TicketDetailPage() {
|
||||
ticket.groupId ?? undefined
|
||||
);
|
||||
await refreshTicket();
|
||||
} catch (err: any) {
|
||||
setError(err.message || "No se pudo asignar el agente");
|
||||
} catch (err: unknown) {
|
||||
setError(err instanceof Error ? err.message : "No se pudo asignar el agente");
|
||||
} finally {
|
||||
setActing(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user