mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 08:46:42 +00:00
15 lines
333 B
JavaScript
15 lines
333 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const {
|
||
|
contentTypes: {
|
||
|
constants: { PUBLISHED_AT_ATTRIBUTE, DP_PUB_STATE_LIVE, DP_PUB_STATE_PREVIEW },
|
||
|
},
|
||
|
} = require('strapi-utils');
|
||
|
|
||
|
module.exports = {
|
||
|
publicationState: {
|
||
|
[DP_PUB_STATE_LIVE]: { [PUBLISHED_AT_ATTRIBUTE]: { $ne: null, $exists: true } },
|
||
|
[DP_PUB_STATE_PREVIEW]: undefined,
|
||
|
},
|
||
|
};
|