From 9183ade29d6707f0e83f88355c36c635dd469f94 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Fri, 26 Aug 2022 02:02:39 +0000 Subject: [PATCH] fix: type error in rest proxy --- template/bigbot/package-lock.json | 14 +++++++------- template/bigbot/package.json | 2 +- template/bigbot/src/rest/index.ts | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/template/bigbot/package-lock.json b/template/bigbot/package-lock.json index e78ee3689..30334c293 100644 --- a/template/bigbot/package-lock.json +++ b/template/bigbot/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@influxdata/influxdb-client": "^1.29.0", "@prisma/client": "^3.12.0", - "discordeno": "^13.0.0-rc46", + "discordeno": "^13.0.0-rc48", "express": "^4.18.1", "prisma": "^3.12.0", "tslib": "^2.3.1" @@ -371,9 +371,9 @@ } }, "node_modules/discordeno": { - "version": "13.0.0-rc46", - "resolved": "https://registry.npmjs.org/discordeno/-/discordeno-13.0.0-rc46.tgz", - "integrity": "sha512-fXWg4Kt9nU33vF8YWmdaTs/Rouzs6sdNgnOEBOc85aBj735m/lbRNgOYE9Jgzl31hERz+7IyTVvA3Xd3c4fNhw==", + "version": "13.0.0-rc48", + "resolved": "https://registry.npmjs.org/discordeno/-/discordeno-13.0.0-rc48.tgz", + "integrity": "sha512-yjct+iiFsvz16jCncw59TresbuVYuY4yRxJoo39gAU+NWAJCypgeITnL9lgWOzK18Ib0lqss9rfslfvtxfqCAw==", "dependencies": { "@deno/shim-deno": "~0.3.0", "@deno/shim-timers": "~0.1.0", @@ -1486,9 +1486,9 @@ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" }, "discordeno": { - "version": "13.0.0-rc46", - "resolved": "https://registry.npmjs.org/discordeno/-/discordeno-13.0.0-rc46.tgz", - "integrity": "sha512-fXWg4Kt9nU33vF8YWmdaTs/Rouzs6sdNgnOEBOc85aBj735m/lbRNgOYE9Jgzl31hERz+7IyTVvA3Xd3c4fNhw==", + "version": "13.0.0-rc48", + "resolved": "https://registry.npmjs.org/discordeno/-/discordeno-13.0.0-rc48.tgz", + "integrity": "sha512-yjct+iiFsvz16jCncw59TresbuVYuY4yRxJoo39gAU+NWAJCypgeITnL9lgWOzK18Ib0lqss9rfslfvtxfqCAw==", "requires": { "@deno/shim-deno": "~0.3.0", "@deno/shim-timers": "~0.1.0", diff --git a/template/bigbot/package.json b/template/bigbot/package.json index 0d700d0ca..ad68a1134 100644 --- a/template/bigbot/package.json +++ b/template/bigbot/package.json @@ -11,7 +11,7 @@ "dependencies": { "@influxdata/influxdb-client": "^1.29.0", "@prisma/client": "^3.12.0", - "discordeno": "^13.0.0-rc46", + "discordeno": "^13.0.0-rc48", "express": "^4.18.1", "prisma": "^3.12.0", "tslib": "^2.3.1" diff --git a/template/bigbot/src/rest/index.ts b/template/bigbot/src/rest/index.ts index d1602dfc2..e91ba3e9a 100644 --- a/template/bigbot/src/rest/index.ts +++ b/template/bigbot/src/rest/index.ts @@ -23,7 +23,7 @@ if (INFLUX_TOKEN) { .stringField("type", "REQUEST_FETCHING") .tag("method", options.method) .tag("url", options.url) - .tag("bucket", options.bucketId), + .tag("bucket", options.bucketId ?? "NA"), ); }; @@ -36,7 +36,7 @@ if (INFLUX_TOKEN) { .stringField("type", "REQUEST_FETCHED") .tag("method", options.method) .tag("url", options.url) - .tag("bucket", options.bucketId) + .tag("bucket", options.bucketId ?? "NA") .intField("status", response.status) .tag("statusText", response.statusText), );