refacto site settings
Some checks failed
Dotnet build and test / build (pull_request) Failing after 11m10s
Some checks failed
Dotnet build and test / build (pull_request) Failing after 11m10s
This commit is contained in:
parent
3e7e76edf2
commit
8faabbb5ff
28 changed files with 256 additions and 224 deletions
|
|
@ -64,6 +64,7 @@ public static class EstimateSignatureFileHelper
|
|||
long estimateId,
|
||||
SignatureType type,
|
||||
SignaturePadPayload payload,
|
||||
SiteSettings siteSettings,
|
||||
CancellationToken token = default)
|
||||
{
|
||||
if (user is null) throw new ArgumentNullException(nameof(user));
|
||||
|
|
@ -77,7 +78,7 @@ public static class EstimateSignatureFileHelper
|
|||
// (not user-derived), so we skip the IsValidYavscPath
|
||||
// check that ReceiveUserFile performs on user-supplied
|
||||
// subpaths.
|
||||
var root = user.EnsureDestinationDirectory(SignaturesSubdir);
|
||||
var root = user.EnsureDestinationDirectory(SignaturesSubdir, siteSettings);
|
||||
|
||||
var fileName = FileNameFormat(type, estimateId, DateTime.UtcNow.Ticks);
|
||||
var fullPath = Path.Combine(root, fileName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue