SHA256
Small fixes and improvements:
- Show app version on Sidebar. - StayEntryForm - Remove unnecesary refs to components. - Fixed some result and log messages in entity services.
This commit is contained in:
1 parent
dcd5bb2aad
commit
ae2ea51060
5 files changed
+13
-8
No files matched your search
@@ -56,7 +56,7 @@ public class StayEntryEntityService(
|
||||
if (isInOtherStay)
|
||||
{
|
||||
string period = $"{dbStay.DateIn}-{dbStay.DateOut}";
|
||||
return Result.FailWithContext(ResultCode.GuestCurrentlyInStay, dbGuest.GetFullKey(), period);
|
||||
return Result.FailWithContext(ResultCode.GuestCurrentlyInStay, dbGuest.FullDocument, period);
|
||||
}
|
||||
|
||||
//Add dbGuest to dbStay.
|
||||
|
||||
@@ -46,12 +46,14 @@ public class StayExportFileEntityService(
|
||||
await dbContext.AddAsync(dbItem);
|
||||
await dbContext.SaveChangesAsync();
|
||||
|
||||
logger.LogInformation("StayExportFileService - CreateStayExportAsync: GuestDocument Created: '{id}'", dbItem.GetFullKey());
|
||||
logger.LogInformation(
|
||||
"StayExportFileService - CreateStayExportAsync: StayExport Created (ID: '{id}') with result: '{result}'",
|
||||
dbItem.GetFullKey(), dbItem.ExportResult);
|
||||
return Result.Ok();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogError(ex, "StayExportFileService - CreateStayExportAsync: Error creating GuestDocument");
|
||||
logger.LogError(ex, "StayExportFileService - CreateStayExportAsync: Error creating StayExport");
|
||||
return Result.FailUnknownError();
|
||||
}
|
||||
}
|
||||
@@ -83,7 +85,7 @@ public class StayExportFileEntityService(
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.LogError(ex, "StayExportFileService - DeleteStayExportAsync: Error creating GuestDocument");
|
||||
logger.LogError(ex, "StayExportFileService - DeleteStayExportAsync: Error deleting StayExport");
|
||||
return Result.FailUnknownError();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user