refacto site settings
Some checks failed
Dotnet build and test / build (pull_request) Failing after 11m10s

This commit is contained in:
Paul Schneider 2026-09-17 22:22:18 +01:00
commit 8faabbb5ff
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
28 changed files with 256 additions and 224 deletions

View file

@ -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);