Browse Source

Merge pull request #22891 from abpframework/salihozkara-patch-1

Set the fixed version 1.0.0 for documents in FileSystem
pull/22936/head
oykuermann 1 year ago
committed by GitHub
parent
commit
053b00703d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      modules/docs/src/Volo.Docs.Domain/Volo/Docs/FileSystem/Documents/FileSystemDocumentSource.cs

3
modules/docs/src/Volo.Docs.Domain/Volo/Docs/FileSystem/Documents/FileSystemDocumentSource.cs

@ -32,7 +32,8 @@ namespace Volo.Docs.FileSystem.Documents
localDirectory = documentName.Substring(0, documentName.LastIndexOf('/')); localDirectory = documentName.Substring(0, documentName.LastIndexOf('/'));
} }
version = File.GetLastWriteTime(path).ToString("yyyyMMddHHmmss"); // The version is intentionally set to "1.0.0" as part of the versioning strategy for file system documents.
version = "1.0.0";
return new Document(GuidGenerator.Create(), return new Document(GuidGenerator.Create(),
project.Id, project.Id,

Loading…
Cancel
Save