mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
refactor: rename mtime
This commit is contained in:
parent
04fdc644f6
commit
783c4dc350
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
|
|||
2
src/types/models/Ctx.d.ts
vendored
2
src/types/models/Ctx.d.ts
vendored
|
|
@ -69,7 +69,7 @@ type SearchHistory = SearchHistoryItem[];
|
|||
|
||||
type StreamingServerUrl = {
|
||||
url: string,
|
||||
_mtime: Date,
|
||||
mtime: Date,
|
||||
};
|
||||
|
||||
type StreamingServerUrls = StreamingServerUrl[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue