Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Commit 8381b32

Browse files
fix(register): do not pass strapi instance to getPluginService
1 parent d4a991b commit 8381b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { registerGraphlQLQuery } = require('./graphql');
44
const { getPluginService } = require('./utils/getPluginService');
55

66
module.exports = ({ strapi }) => {
7-
const { contentTypes } = getPluginService(strapi, 'settingsService').get();
7+
const { contentTypes } = getPluginService('settingsService').get();
88

99
// ensure we have at least one model before attempting registration
1010
if (!Object.keys(contentTypes).length) {

0 commit comments

Comments
 (0)