6 lines
166 B
JavaScript
6 lines
166 B
JavaScript
const { DateTime } = require('luxon')
|
|
|
|
module.exports = (collection) => {
|
|
if (!collection || !collection.length) return ''
|
|
return collection[0].publishedAt
|
|
}
|