feed update; other

This commit is contained in:
tmshv committed 2016-03-24 23:52:04 +03:00
1 parent 70707a2244
commit 6655a5fca8
8 files changed
+146 -66

No files matched your search

+2 -2
View File
@@ -4,9 +4,9 @@ import {accepts} from './';
import {c} from '../core/db';
import {sortBy} from '../utils/sort';
const timestamp = i => i.getTime();
const sortNewsByDate = sortBy(
i => (new Date(i.date))
.getTime()
i => timestamp(new Date(i.date))
);
const redirect = async ctx => ctx.redirect('/');