Skip to content

Commit 1366b1b

Browse files
committed
Fixing compile issues
1 parent 442157b commit 1366b1b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/picoded/dstack/mongodb/MongoDB_FileWorkspaceMap.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public long backend_createdTimestamp(final String oid, final String filepath) {
547547
*/
548548
public long backend_modifiedTimestamp(final String oid, final String filepath) {
549549
// Lets build the query for the "root file"
550-
Bson query = Filters.eq("filename", fullpath);
550+
Bson query = Filters.eq("filename", cleanFilePath(filepath));
551551

552552
// Lets prepare the search
553553
GridFSFindIterable search = gridFSBucket.find(query).limit(1);
@@ -556,8 +556,7 @@ public long backend_modifiedTimestamp(final String oid, final String filepath) {
556556
try (MongoCursor<GridFSFile> cursor = search.iterator()) {
557557
if (cursor.hasNext()) {
558558
GridFSFile fileObj = cursor.next();
559-
Date uploadDate = fileObj.getUploadDate();
560-
return uploadDate.getTime();
559+
return fileObj.getUploadDate().getTime();
561560
}
562561
}
563562

0 commit comments

Comments
 (0)