Skip to content

Commit cc27763

Browse files
Bloqueo por categoria
1 parent ec615a4 commit cc27763

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/Funcionalidades/NuevoTicket.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type { LogService } from "../Services/Log.service";
1616
import { useAuth } from "../auth/authContext";
1717
import { pickTecnicoConMenosCasos } from "../utils/Commons";
1818
import type { UsuariosSP } from "../Models/Usuarios";
19+
import type { Ticket } from "../Models/Tickets";
1920

2021

2122
type Svc = {
@@ -381,13 +382,14 @@ export function useNuevoUsuarioTicketForm(services: Svc) {
381382
const resolutor = await pickTecnicoConMenosCasos(Usuarios);
382383
console.log(resolutor);
383384

384-
const payload = {
385+
const payload: Ticket = {
385386
Title: state.motivo,
386387
Descripcion: state.descripcion,
387388
FechaApertura: aperturaISO,
388389
TiempoSolucion: tiempoSolISO,
389390
Nombreresolutor: resolutor?.Title,
390-
Correoresolutor: resolutor?.Correo,
391+
CorreoResolutor: resolutor?.Correo,
392+
IdResolutor: resolutor?.Id,
391393
Solicitante: account?.name,
392394
CorreoSolicitante: account?.username,
393395
Estadodesolicitud: "En Atención",

src/auth/msal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const msal = new PublicClientApplication({
4343
let initialized = false;
4444

4545
/** Scopes centralizados para login/token */
46-
export const SCOPES = ['openid', 'profile', 'email', 'User.Read', 'Sites.ReadWrite.All','Directory.Read.All',] as const;
46+
export const SCOPES = ['openid', 'profile', 'email', 'User.Read', 'Sites.ReadWrite.All','Directory.Read.All', 'Schedule.Read.All'] as const;
4747

4848
/** Helpers de requests */
4949
const loginPopupRequest: PopupRequest = { scopes: [...SCOPES], prompt: 'select_account' };

0 commit comments

Comments
 (0)