Skip to content

Commit 674e998

Browse files
refactor: cleanup getEntries' locale
In strapi v5, locale is part of strapi core right now, so checking locale is not needed. More information: https://docs.strapi.io/cms/migration/v4-to-v5/breaking-changes/i18n-content-manager-locale
1 parent 9321874 commit 674e998

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

server/src/services/content-types/content-types.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,7 @@ export default ({ strapi }) => ({
217217
sort,
218218
populate,
219219
status,
220-
}
221-
// To avoid issue if internationalization (i18n) is not installed by the user
222-
if (locale) {
223-
queryOptions.locale = locale
220+
locale,
224221
}
225222

226223
const entries = await strapi

0 commit comments

Comments
 (0)