Fix teks slug

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-10 21:35:57 +04:00
parent 8852701aaa
commit 75f8ab7d3d
+1 -2
View File
@@ -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)