Skip to content

Commit f10a271

Browse files
fix revalidate sort bug
1 parent 2ec6bd9 commit f10a271

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/core/service/BinarySyncerService.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ export class BinarySyncerService extends AbstractService {
273273
existsItem.ignoreDownloadStatuses = item.ignoreDownloadStatuses;
274274
existsItem.date = item.date;
275275
} else if (dir.endsWith(latestVersionParent)) {
276-
const isLatestItem = sortBy(fetchItems, [ 'date' ]).pop()?.name === item.name;
276+
const isLatestItem = sortBy(fetchItems, item => {
277+
return new Date(item.date);
278+
}).pop()?.name === item.name;
277279
if (isLatestItem && existsItem.isDir) {
278280
diffItems.push({
279281
item: existsItem,

0 commit comments

Comments
 (0)