mensaje error invitados

This commit is contained in:
2022-05-25 20:15:22 -05:00
parent f8d17c8f27
commit 79f82db59e
+1 -1
View File
@@ -38,7 +38,7 @@ const infoInvitados = async (body) => {
'No existe ningún profesor con este id en esta premiación.'
);
if (profPrem.numeroInvitados)
throw new Error('A este profesor ya se le han guardado sus invitados.');
throw new Error('Este profesor ya registró invitados en otro momento.');
profPrem.update({ numeroInvitados: numeroInvitados });
const respuesta = [];