fix typo, rename column, logging

This commit is contained in:
Jonathan Jenne 2023-12-07 09:55:31 +01:00
parent cd23c5b974
commit 752dbe3718
3 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,7 @@ Public Class ReceiverModel
End If End If
Return New EnvelopeReceiver() With { Return New EnvelopeReceiver() With {
.Id = pRow.ItemEx("GUID", 0), .Id = pRow.ItemEx("RECEIVER_ID", 0),
.Email = pRow.ItemEx("EMAIL_ADDRESS", ""), .Email = pRow.ItemEx("EMAIL_ADDRESS", ""),
.Name = pRow.ItemEx("NAME", ""), .Name = pRow.ItemEx("NAME", ""),
.Sequence = pRow.ItemEx("SEQUENCE", 0), .Sequence = pRow.ItemEx("SEQUENCE", 0),

View File

@ -23,7 +23,7 @@ Public Class UserModel
Public Function CheckUserLogin(pUser As User) As User Public Function CheckUserLogin(pUser As User) As User
Try Try
Dim oSql = $"SELECT * FROM [dbo].[FNDD_LOGIN_USER_MODULE] ('{pUser.Username}', 'SIG_PMENV_CR', 1)" Dim oSql = $"SELECT * FROM [dbo].[FNDD_LOGIN_USER_MODULE] ('{pUser.Username}', 'SIG_ENV_CR', 1)"
Dim oTable As DataTable = Database.GetDatatable(oSql) Dim oTable As DataTable = Database.GetDatatable(oSql)
If oTable?.Rows.Count = 0 Then If oTable?.Rows.Count = 0 Then

View File

@ -53,6 +53,9 @@ namespace EnvelopeGenerator.Web.Services
var receiverSignature = result.Item2; var receiverSignature = result.Item2;
var receiverId = receiverModel.GetReceiverIdBySignature(receiverSignature); var receiverId = receiverModel.GetReceiverIdBySignature(receiverSignature);
logger.Debug("Resolved receiver signature to receiverId [{0}]", receiverId);
logger.Debug("Loading envelope..");
Envelope? envelope = envelopeModel.GetByUuid(envelopeUuid); Envelope? envelope = envelopeModel.GetByUuid(envelopeUuid);
if (envelope == null) if (envelope == null)
@ -75,7 +78,7 @@ namespace EnvelopeGenerator.Web.Services
if (receiver == null) if (receiver == null)
{ {
logger.Warn("Receiver not found"); logger.Warn("Receiver [{0}] not found", receiverId);
throw new NullReferenceException("Receiver not found"); throw new NullReferenceException("Receiver not found");
} }