From 4d530a15e98d9fd4a0e65932b60a50ee598b97c0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 27 Sep 2022 16:07:05 +0530 Subject: [PATCH] chore(api): upgrade nc-help Signed-off-by: Pranav C --- packages/nocodb/package-lock.json | 14 +++++++------- packages/nocodb/package.json | 2 +- packages/nocodb/src/lib/meta/api/utilApis.ts | 4 +++- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/nocodb/package-lock.json b/packages/nocodb/package-lock.json index 76d93642a0..0f83ffa195 100644 --- a/packages/nocodb/package-lock.json +++ b/packages/nocodb/package-lock.json @@ -70,7 +70,7 @@ "mysql2": "^2.2.5", "nanoid": "^3.1.20", "nc-common": "0.0.6", - "nc-help": "0.2.75", + "nc-help": "0.2.76", "nc-lib-gui": "0.97.0", "nc-plugin": "0.1.2", "ncp": "^2.0.0", @@ -15254,9 +15254,9 @@ } }, "node_modules/nc-help": { - "version": "0.2.75", - "resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.75.tgz", - "integrity": "sha512-fJiqdXb7/kTuocHtndOgJZd84vQOGd1ohkOop/bza4hP1fzdS6yzRpYsSB2du7rErTbo65RXc5qJfupbNmri1A==", + "version": "0.2.76", + "resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.76.tgz", + "integrity": "sha512-vSVQBDfxeGNdztnuKqj4Xd+dIaCYPuulIqH94lIHqUPq12OzrLEbBqVhXTgZ6GhKYWUeiVJBClky0qpWQPQJeg==", "dependencies": { "@rudderstack/rudder-sdk-node": "^1.1.3", "axios": "^0.21.1", @@ -36723,9 +36723,9 @@ "integrity": "sha512-3AryS9uwa5NfISLxMciUonrH7YfXp+nlahB9T7girXIsLQrmwX4MdnuKs32akduCOGpKmjTJSWmATULbuMkbfw==" }, "nc-help": { - "version": "0.2.75", - "resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.75.tgz", - "integrity": "sha512-fJiqdXb7/kTuocHtndOgJZd84vQOGd1ohkOop/bza4hP1fzdS6yzRpYsSB2du7rErTbo65RXc5qJfupbNmri1A==", + "version": "0.2.76", + "resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.76.tgz", + "integrity": "sha512-vSVQBDfxeGNdztnuKqj4Xd+dIaCYPuulIqH94lIHqUPq12OzrLEbBqVhXTgZ6GhKYWUeiVJBClky0qpWQPQJeg==", "requires": { "@rudderstack/rudder-sdk-node": "^1.1.3", "axios": "^0.21.1", diff --git a/packages/nocodb/package.json b/packages/nocodb/package.json index f397aa6a88..5f1a86e71a 100644 --- a/packages/nocodb/package.json +++ b/packages/nocodb/package.json @@ -155,7 +155,7 @@ "mysql2": "^2.2.5", "nanoid": "^3.1.20", "nc-common": "0.0.6", - "nc-help": "0.2.75", + "nc-help": "0.2.76", "nc-lib-gui": "0.97.0", "nc-plugin": "0.1.2", "ncp": "^2.0.0", diff --git a/packages/nocodb/src/lib/meta/api/utilApis.ts b/packages/nocodb/src/lib/meta/api/utilApis.ts index 4f5104a600..951d57cd8a 100644 --- a/packages/nocodb/src/lib/meta/api/utilApis.ts +++ b/packages/nocodb/src/lib/meta/api/utilApis.ts @@ -83,7 +83,9 @@ export async function versionInfo(_req: Request, res: Response) { } export function feedbackFormGet(_req: Request, res: Response) { - res.json(feedbackForm()); + feedbackForm() + .then((form) => res.json(form)) + .catch((e) => res.json({ error: e.message })); } export async function appHealth(_: Request, res: Response) {