mirror of
https://github.com/docmost/docmost.git
synced 2026-08-24 18:22:17 +10:00
fix: skip pgvector table check when enabling AI search on turbopuffer (#2416)
This commit is contained in:
@@ -396,7 +396,10 @@ export class WorkspaceService {
|
||||
}
|
||||
}
|
||||
|
||||
if (updateWorkspaceDto.aiSearch) {
|
||||
if (
|
||||
updateWorkspaceDto.aiSearch &&
|
||||
this.environmentService.getAiVectorDriver() !== 'turbopuffer'
|
||||
) {
|
||||
const tableExists = await isPageEmbeddingsTableExists(this.db);
|
||||
if (!tableExists) {
|
||||
throw new BadRequestException(
|
||||
|
||||
Reference in New Issue
Block a user