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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
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('/')); |
|
|
|
} |
|
|
|
|
|
|
|
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(), |
|
|
|
project.Id, |
|
|
|
|