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