mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 00:09:23 +00:00

* Add _publicationState request param / Returns live by default for CT that have D&P activated Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
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,
|
|
},
|
|
};
|