Fix teks slug
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
module.exports = {
|
||||
index: async ctx => {
|
||||
const result = await strapi
|
||||
.query('teks')
|
||||
.model.find({published_at: {$ne: null}})
|
||||
.query('teks').find({published_at_nin: null})
|
||||
const sortedResult = result.sort((a, b) => {
|
||||
const aDate = new Date(a.published_at)
|
||||
const bDate = new Date(b.published_at)
|
||||
|
||||
Reference in New Issue
Block a user