fix typo, rename column, logging
This commit is contained in:
parent
cd23c5b974
commit
752dbe3718
@ -25,7 +25,7 @@ Public Class ReceiverModel
|
||||
End If
|
||||
|
||||
Return New EnvelopeReceiver() With {
|
||||
.Id = pRow.ItemEx("GUID", 0),
|
||||
.Id = pRow.ItemEx("RECEIVER_ID", 0),
|
||||
.Email = pRow.ItemEx("EMAIL_ADDRESS", ""),
|
||||
.Name = pRow.ItemEx("NAME", ""),
|
||||
.Sequence = pRow.ItemEx("SEQUENCE", 0),
|
||||
|
||||
@ -23,7 +23,7 @@ Public Class UserModel
|
||||
|
||||
Public Function CheckUserLogin(pUser As User) As User
|
||||
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)
|
||||
|
||||
If oTable?.Rows.Count = 0 Then
|
||||
|
||||
@ -53,6 +53,9 @@ namespace EnvelopeGenerator.Web.Services
|
||||
var receiverSignature = result.Item2;
|
||||
var receiverId = receiverModel.GetReceiverIdBySignature(receiverSignature);
|
||||
|
||||
logger.Debug("Resolved receiver signature to receiverId [{0}]", receiverId);
|
||||
|
||||
logger.Debug("Loading envelope..");
|
||||
Envelope? envelope = envelopeModel.GetByUuid(envelopeUuid);
|
||||
|
||||
if (envelope == null)
|
||||
@ -75,7 +78,7 @@ namespace EnvelopeGenerator.Web.Services
|
||||
|
||||
if (receiver == null)
|
||||
{
|
||||
logger.Warn("Receiver not found");
|
||||
logger.Warn("Receiver [{0}] not found", receiverId);
|
||||
throw new NullReferenceException("Receiver not found");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user