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 = {
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)