diff --git a/twake/backend/node/src/services/applications/entities/application.ts b/twake/backend/node/src/services/applications/entities/application.ts index 34c48716d..219274144 100644 --- a/twake/backend/node/src/services/applications/entities/application.ts +++ b/twake/backend/node/src/services/applications/entities/application.ts @@ -109,7 +109,7 @@ export type ApplicationIdentity = { website: string; categories: string[]; compatibility: "twake"[]; - pluginRepo?: string; + repository?: string; }; export type ApplicationPublication = { diff --git a/twake/backend/node/src/services/applications/web/controllers/applications.ts b/twake/backend/node/src/services/applications/web/controllers/applications.ts index 374cbce38..11cbaa2dd 100644 --- a/twake/backend/node/src/services/applications/web/controllers/applications.ts +++ b/twake/backend/node/src/services/applications/web/controllers/applications.ts @@ -148,13 +148,13 @@ export class ApplicationController } // SYNC PLUGINS - if (app.identity.pluginRepo) { + if (app.identity.repository) { try { axios .post( `${pluginsEndpoint}/add`, { - gitRepo: app.identity.pluginRepo, + gitRepo: app.identity.repository, pluginId: entity.getApplicationObject().id, pluginSecret: entity.getApplicationObject().api.private_key, },