Fixes another 500
This commit is contained in:
parent
b3e2143275
commit
1bce173b1c
2 changed files with 17 additions and 21 deletions
|
|
@ -248,10 +248,6 @@ Le client final: {clientFinal}
|
|||
x => x.PerformerId == model.PerformerId
|
||||
);
|
||||
model.PerformerProfile = pro;
|
||||
// FIXME Why!!
|
||||
// ModelState.ClearValidationState("PerformerProfile.Avatar");
|
||||
// ModelState.ClearValidationState("Client.Avatar");
|
||||
// ModelState.ClearValidationState("ClientId");
|
||||
|
||||
if (!model.Consent)
|
||||
ModelState.AddModelError("Consent", "Vous devez accepter les conditions générales de vente de ce service");
|
||||
|
|
@ -278,10 +274,10 @@ Le client final: {clientFinal}
|
|||
else _context.Attach<HairPrestation>(model.Prestation);
|
||||
|
||||
_context.HairCutQueries.Add(model);
|
||||
await _context.SaveChangesAsync(uid);
|
||||
var brusherProfile = await _context.BrusherProfile.SingleAsync(p=>p.UserId == pro.PerformerId);
|
||||
model.Client = await _context.Users.SingleAsync(u=>u.Id == model.ClientId);
|
||||
model.SelectedProfile = brusherProfile;
|
||||
await _context.SaveChangesAsync(uid);
|
||||
var yaev = model.CreateNewHairCutQueryEvent(_localizer);
|
||||
MessageWithPayloadResponse grep = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ namespace Yavsc
|
|||
if (appData == null)
|
||||
{
|
||||
if (SiteSetup.DataDir == null) {
|
||||
SiteSetup.DataDir = "AppData";
|
||||
SiteSetup.DataDir = "AppData"+env.EnvironmentName;
|
||||
} else logger.LogWarning("existing setting: "+SiteSetup.DataDir);
|
||||
DirectoryInfo di = new DirectoryInfo(SiteSetup.DataDir);
|
||||
if (!di.Exists)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue