Skip to content

Commit

Permalink
fix: supress feature flag manager errors
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
virtual-designer authored Dec 20, 2024
1 parent b179583 commit 4a90059
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .bun-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.30
1.1.40
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.9.0
v23.5.0
1 change: 1 addition & 0 deletions installed_extensions2/neko
1 change: 1 addition & 0 deletions installed_extensions2/waifu.pics
12 changes: 7 additions & 5 deletions src/framework/typescript/cluster/FeatureFlagManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ import axios from "axios";
import { Collection } from "discord.js";

class FeatureFlagManager extends HasApplication implements Bootable {
protected static readonly CentralAPI = "https://proxy.sudobot.onesoftnet.eu.org/api/v1/flags/global";
protected static readonly CentralAPI =
"https://proxy.sudobot.onesoftnet.eu.org/api/v1/flags/global";
protected readonly flags = new Collection<string, string>();

public async boot() {
const flagCentralApiUrl =
process.env.FEATURE_FLAG_PROVIDER_URL?.toString() === "none"
? undefined
: process.env.FEATURE_FLAG_PROVIDER_URL || FeatureFlagManager.CentralAPI;
// const flagCentralApiUrl =
// process.env.FEATURE_FLAG_PROVIDER_URL?.toString() === "none"
// ? undefined
// : process.env.FEATURE_FLAG_PROVIDER_URL || FeatureFlagManager.CentralAPI;
const flagCentralApiUrl: string | undefined = undefined;

if (flagCentralApiUrl) {
try {
Expand Down

0 comments on commit 4a90059

Please sign in to comment.