mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Fix latest songs/albums
This commit is contained in:
parent
e02d72b3b0
commit
7bf47b2d50
2 changed files with 2 additions and 2 deletions
|
@ -178,6 +178,6 @@ export const albumStore = {
|
|||
getRecentlyAdded(n = 6) {
|
||||
const applicable = filter(this.all, album => album.id !== 1);
|
||||
|
||||
return take(orderBy(applicable, 'date_created', 'desc'), n);
|
||||
return take(orderBy(applicable, 'created_at', 'desc'), n);
|
||||
},
|
||||
};
|
||||
|
|
|
@ -358,7 +358,7 @@ export const songStore = {
|
|||
* @return {Array.<Object>}
|
||||
*/
|
||||
getRecentlyAdded(n = 10) {
|
||||
return take(orderBy(this.all, 'date_created', 'desc'), n);
|
||||
return take(orderBy(this.all, 'created_at', 'desc'), n);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue