refactor: rename mtime

This commit is contained in:
Timothy Z. 2024-10-24 10:31:04 +03:00
parent 04fdc644f6
commit 783c4dc350
2 changed files with 3 additions and 3 deletions

View file

@ -13,8 +13,8 @@ const useStreamingServerUrls = () => {
const ctx = useModelState({ model: 'ctx' });
const streamingServerUrls = ctx.streamingServerUrls.sort((a, b) => {
const dateA = new Date(a._mtime).getTime();
const dateB = new Date(b._mtime).getTime();
const dateA = new Date(a.mtime).getTime();
const dateB = new Date(b.mtime).getTime();
return dateA - dateB;
});

View file

@ -69,7 +69,7 @@ type SearchHistory = SearchHistoryItem[];
type StreamingServerUrl = {
url: string,
_mtime: Date,
mtime: Date,
};
type StreamingServerUrls = StreamingServerUrl[];