Skip to content

Commit

Permalink
Fix version null exception for FileSystemDocumentSource
Browse files Browse the repository at this point in the history
  • Loading branch information
salihozkara committed Oct 3, 2024
1 parent 167ae36 commit 371e6ac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public async Task<Document> GetDocumentAsync(Project project, string documentNam
localDirectory = documentName.Substring(0, documentName.LastIndexOf('/'));
}

version = File.GetLastWriteTime(path).ToString("yyyyMMddHHmmss");

return new Document(GuidGenerator.Create(),
project.Id,
documentName,
Expand Down

0 comments on commit 371e6ac

Please sign in to comment.