mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-08 16:10:09 +00:00
fix build error
This commit is contained in:
@@ -50,8 +50,8 @@ export class CommandManager {
|
||||
}
|
||||
|
||||
async searchCommands(query: string): Promise<SelectTemplate[]> {
|
||||
const templates = await this.findAllCommands()
|
||||
const results = fuzzysort.go(query, templates, {
|
||||
const commands = await this.findAllCommands()
|
||||
const results = fuzzysort.go(query, commands, {
|
||||
keys: ['name'],
|
||||
threshold: 0.2,
|
||||
limit: 20,
|
||||
|
||||
@@ -31,7 +31,7 @@ export class CommandRepository {
|
||||
if (!this.db) {
|
||||
throw new DatabaseNotInitializedException()
|
||||
}
|
||||
const result = await this.db.liveQuery<SelectTemplate>(
|
||||
const result = await this.db.query<SelectTemplate>(
|
||||
`SELECT * FROM "template"`
|
||||
)
|
||||
return result.rows
|
||||
|
||||
Reference in New Issue
Block a user