@strapi/content-manager 5.0.0-rc.14 → 5.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server/index.mjs
CHANGED
@@ -2523,8 +2523,9 @@ const relations = {
|
|
2523
2523
|
} else {
|
2524
2524
|
where.id = id;
|
2525
2525
|
}
|
2526
|
-
|
2527
|
-
|
2526
|
+
const publishedAt = getPublishedAtClause(status, targetUid);
|
2527
|
+
if (!isEmpty(publishedAt)) {
|
2528
|
+
where[`${alias}.published_at`] = publishedAt;
|
2528
2529
|
}
|
2529
2530
|
if (filterByLocale) {
|
2530
2531
|
where[`${alias}.locale`] = locale;
|