Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
fix type issue in commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kerwanp committed Oct 2, 2024
1 parent bba2b78 commit 00915d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/sync_index_settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'reflect-metadata'
import { inject } from '@adonisjs/core'
import { BaseCommand } from '@adonisjs/core/ace'
import { MagnifyEngine } from '../src/engines/main.js'

export default class SyncIndexSettings extends BaseCommand {
static commandName = 'magnify:sync-index-settings'
Expand All @@ -9,7 +10,7 @@ export default class SyncIndexSettings extends BaseCommand {
@inject()
async run(): Promise<void> {
const magnify = await this.app.container.make('magnify')
const engine = magnify.engine()
const engine = magnify.engine() as MagnifyEngine

if (!engine.syncIndexSettings) {
this.logger.error(`The driver "${String(engine)}" does not support updating index settings.`)
Expand Down

0 comments on commit 00915d8

Please sign in to comment.