Merge pull request #4708 from specklesystems/iain/fix-bad-import-fileimport

fix(fileimport): import Knex type correctly
This commit is contained in:
Iain Sproat
2025-05-12 14:25:36 +01:00
committed by GitHub
5 changed files with 5 additions and 5 deletions
@@ -4,7 +4,7 @@ import {
configureKnexClient
} from '@speckle/shared/environment/multiRegionConfig'
import { logger } from '@/observability/logging.js'
import { Knex } from 'knex'
import type { Knex } from 'knex'
const { FF_WORKSPACES_MULTI_REGION_ENABLED } = Environment.getFeatureFlags()
@@ -4,7 +4,7 @@ import {
metricInputFileSize,
metricOperationErrors
} from '@/controller/prometheusMetrics.js'
import { getDbClients } from '@/knex.js'
import { getDbClients } from '@/clients/knex.js'
import { downloadFile } from '@/controller/filesApi.js'
import fs from 'fs'
@@ -1,6 +1,6 @@
import http from 'http'
import prometheusClient, { Counter, Summary } from 'prom-client'
import { getDbClients } from '@/knex.js'
import { getDbClients } from '@/clients/knex.js'
import { Knex } from 'knex'
import { Pool } from 'tarn'
import { isObject } from 'lodash-es'
@@ -1,7 +1,7 @@
import fs from 'fs'
import * as Observability from '@speckle/shared/observability'
import { logger as parentLogger } from '@/observability/logging.js'
import { getDbClients } from '@/knex.js'
import { getDbClients } from '@/clients/knex.js'
import { parseAndCreateCommitFactory } from '@/ifc/index.js'
async function main() {
@@ -14,7 +14,7 @@ import {
loadMultiRegionsConfig,
configureKnexClient
} from '@speckle/shared/environment/multiRegionConfig'
import { Knex } from 'knex'
import type { Knex } from 'knex'
const { FF_WORKSPACES_MULTI_REGION_ENABLED } = Environment.getFeatureFlags()