mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 08:38:09 +00:00
15 lines
334 B
JavaScript
15 lines
334 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,
|
|
},
|
|
};
|