Skip to content

Commit

Permalink
Merge pull request #14141 from Budibase/fix/dev-self-host-sqs-enable
Browse files Browse the repository at this point in the history
Re-enable SQS (when flag set) in development/self host
  • Loading branch information
mike12345567 authored Jul 11, 2024
2 parents 5f0597d + 8d308b5 commit d01284d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/backend-core/src/db/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import env from "../environment"
import { DEFAULT_TENANT_ID, SEPARATOR, DocumentType } from "../constants"
import { getTenantId, getGlobalDBName } from "../context"
import { getTenantId, getGlobalDBName, isMultiTenant } from "../context"
import { doWithDB, directCouchAllDbs } from "./db"
import { AppState, DeletedApp, getAppMetadata } from "../cache/appMetadata"
import { isDevApp, isDevAppID, getProdAppID } from "../docIds/conversions"
Expand Down Expand Up @@ -213,6 +213,11 @@ export function isSqsEnabledForTenant(): boolean {
return false
}

// single tenant (self host and dev) always enabled if flag set
if (!isMultiTenant()) {
return true
}

// This is to guard against the situation in tests where tests pass because
// we're not actually using SQS, we're using Lucene and the tests pass due to
// parity.
Expand Down

0 comments on commit d01284d

Please sign in to comment.