Fix lightning implementation, docs and tests

This commit is contained in:
nicolas.dorier
2020-06-08 23:40:58 +09:00
parent a9dbbe1955
commit 8dd6ecc0b8
36 changed files with 615 additions and 528 deletions

View File

@@ -137,7 +137,7 @@ namespace BTCPayServer.Controllers.GreenField
if (!string.IsNullOrEmpty(data.CustomCSSLink) && data.CustomCSSLink.Length > 500)
ModelState.AddModelError(nameof(data.CustomCSSLink), "CustomCSSLink is 500 chars max");
return !ModelState.IsValid ? this.GetValidationResponse() :null;
return !ModelState.IsValid ? this.CreateValidationError(ModelState) :null;
}
private static Client.Models.PaymentRequestData FromModel(PaymentRequestData data)