Cleanup SQS feature usages
This commit is contained in:
parent
42f27bacb2
commit
9e501b4e65
|
@ -1,6 +1,6 @@
|
||||||
import { Ctx, MaintenanceType, FeatureFlag } from "@budibase/types"
|
import { Ctx, MaintenanceType } from "@budibase/types"
|
||||||
import env from "../../../environment"
|
import env from "../../../environment"
|
||||||
import { env as coreEnv, db as dbCore, features } from "@budibase/backend-core"
|
import { env as coreEnv, db as dbCore } from "@budibase/backend-core"
|
||||||
import nodeFetch from "node-fetch"
|
import nodeFetch from "node-fetch"
|
||||||
|
|
||||||
let sqsAvailable: boolean
|
let sqsAvailable: boolean
|
||||||
|
@ -29,10 +29,7 @@ async function isSqsAvailable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function isSqsMissing() {
|
async function isSqsMissing() {
|
||||||
return (
|
return !(await isSqsAvailable())
|
||||||
(await features.flags.isEnabled(FeatureFlag.SQS)) &&
|
|
||||||
!(await isSqsAvailable())
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetch = async (ctx: Ctx) => {
|
export const fetch = async (ctx: Ctx) => {
|
||||||
|
|
Loading…
Reference in New Issue