mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 07:01:04 +03:00
Add type annotation for datasource
This commit is contained in:
@@ -11,7 +11,7 @@ import logger from './utils/logger'
|
|||||||
import { expressRequestLogger } from './utils/logger'
|
import { expressRequestLogger } from './utils/logger'
|
||||||
import { v4 as uuidv4 } from 'uuid'
|
import { v4 as uuidv4 } from 'uuid'
|
||||||
import OpenAI from 'openai'
|
import OpenAI from 'openai'
|
||||||
import { FindOptionsWhere, MoreThanOrEqual, LessThanOrEqual } from 'typeorm'
|
import { DataSource, FindOptionsWhere, MoreThanOrEqual, LessThanOrEqual } from 'typeorm'
|
||||||
import {
|
import {
|
||||||
IChatFlow,
|
IChatFlow,
|
||||||
IncomingInput,
|
IncomingInput,
|
||||||
@@ -89,7 +89,7 @@ export class App {
|
|||||||
chatflowPool: ChatflowPool
|
chatflowPool: ChatflowPool
|
||||||
cachePool: CachePool
|
cachePool: CachePool
|
||||||
telemetry: Telemetry
|
telemetry: Telemetry
|
||||||
AppDataSource = getDataSource()
|
AppDataSource: DataSource = getDataSource()
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.app = express()
|
this.app = express()
|
||||||
|
|||||||
Reference in New Issue
Block a user