From a0b6946b5f5b5dbe6a304bb6d8ed817f4c56281a Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Thu, 9 Dec 2021 12:06:43 +0100 Subject: [PATCH] Fix(medusa/loaders/plugins) jsdoc (#904) --- packages/medusa/src/loaders/plugins.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/packages/medusa/src/loaders/plugins.js b/packages/medusa/src/loaders/plugins.js index e24bb63bef..fd84b3d9d9 100644 --- a/packages/medusa/src/loaders/plugins.js +++ b/packages/medusa/src/loaders/plugins.js @@ -301,10 +301,8 @@ async function registerServices(pluginDetails, container) { } /** - * Registers a plugin's models at the right location in our container. Models - * must inherit from BaseModel. Models are registered directly in the container. - * Names are camelCase formatted and namespaced by the folder i.e: - * models/example-person -> examplePersonModel + * Registers a plugin's subscribers at the right location in our container. + * Subscribers are registered directly in the container. * @param {object} pluginDetails - the plugin details including plugin options, * version, id, resolved path, etc. See resolvePlugin * @param {object} container - the container where the services will be @@ -326,10 +324,8 @@ function registerSubscribers(pluginDetails, container) { } /** - * Registers a plugin's models at the right location in our container. Models - * must inherit from BaseModel. Models are registered directly in the container. - * Names are camelCase formatted and namespaced by the folder i.e: - * models/example-person -> examplePersonModel + * Registers a plugin's repositories at the right location in our container. + * repositories are registered directly in the container. * @param {object} pluginDetails - the plugin details including plugin options, * version, id, resolved path, etc. See resolvePlugin * @param {object} container - the container where the services will be