@tiledesk/tiledesk-server 2.13.24 → 2.13.25
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/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/services/integrationService.js +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ class IntegrationService {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
async getKeyFromIntegration(id_project, integration_name) {
|
|
27
|
+
async getKeyFromIntegration(id_project, integration_name = 'openai') {
|
|
28
28
|
if (!id_project || !integration_name) {
|
|
29
29
|
throw({ code: 422, error: "Fields 'id_project', 'integration_name' are mandatory" });
|
|
30
30
|
}
|
|
@@ -38,7 +38,7 @@ class IntegrationService {
|
|
|
38
38
|
return integration?.value?.apikey;
|
|
39
39
|
|
|
40
40
|
} catch (err) {
|
|
41
|
-
winston.error("
|
|
41
|
+
winston.error("Error getting integration: ", err);
|
|
42
42
|
throw({ code: err.code || 500, error: err.error || `Error getting integration for ${integration_name} for project ${id_project}` })
|
|
43
43
|
}
|
|
44
44
|
}
|