server: Fix search-related imports

This commit is contained in:
Elian Doran 2024-07-24 20:30:12 +03:00
parent 2787feb593
commit 20ee62dfb1
No known key found for this signature in database
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
"use strict";
import hoistedNoteService from "../hoisted_note.js";
import { SearchParams } from './services/types';
import { SearchParams } from './services/types.js';
class SearchContext {

View File

@ -1,4 +1,4 @@
import { TokenData, TokenStructure } from "./types";
import { TokenData, TokenStructure } from "./types.js";
/**
* This will create a recursive object from a list of tokens - tokens between parenthesis are grouped in a single array

View File

@ -1,4 +1,4 @@
import { TokenData } from "./types";
import { TokenData } from "./types.js";
function lex(str: string) {
str = str.toLowerCase();

View File

@ -21,7 +21,7 @@ import utils from "../../utils.js";
import TrueExp from "../expressions/true.js";
import IsHiddenExp from "../expressions/is_hidden.js";
import SearchContext from "../search_context.js";
import { TokenData, TokenStructure } from "./types";
import { TokenData, TokenStructure } from "./types.js";
import Expression from "../expressions/expression.js";
function getFulltext(_tokens: TokenData[], searchContext: SearchContext) {

View File

@ -13,7 +13,7 @@ import log from "../../log.js";
import hoistedNoteService from "../../hoisted_note.js";
import BNote from "../../../becca/entities/bnote.js";
import BAttribute from "../../../becca/entities/battribute.js";
import { SearchParams, TokenStructure } from "./types";
import { SearchParams, TokenStructure } from "./types.js";
import Expression from "../expressions/expression.js";
import sql from "../../sql.js";
import scriptService from "../../script.js";