More specifically import feature flags.

This commit is contained in:
Sam Rose 2024-08-15 15:17:37 +01:00
parent ea032a0e7e
commit 354e5dd34c
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ import { SQLITE_DESIGN_DOC_ID } from "../../constants"
import { DDInstrumentedDatabase } from "../instrumentation"
import { checkSlashesInUrl } from "../../helpers"
import { sqlLog } from "../../sql/utils"
import { features } from "../.."
import { flags } from "../../features"
const DATABASE_NOT_FOUND = "Database does not exist."
@ -402,7 +402,7 @@ export class DatabaseImpl implements Database {
async destroy() {
if (
(await features.flags.isEnabled("SQS")) &&
(await flags.isEnabled("SQS")) &&
(await this.exists(SQLITE_DESIGN_DOC_ID))
) {
// delete the design document, then run the cleanup operation