Skip to content

Commit

Permalink
fix(misunderstood): moved migration (#4349)
Browse files Browse the repository at this point in the history
* moved migration

* fixed typing
  • Loading branch information
EFF committed Jan 8, 2021
1 parent 5f8d189 commit 08a35f2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import * as sdk from 'botpress/sdk'
import { Migration, MigrationOpts } from 'core/services/migration'

const migration: Migration = {
const migration: sdk.ModuleMigration = {
info: {
description: 'Adds thumbs down as as reason in the misunderstood table',
type: 'database'
},
up: async ({ bp }: MigrationOpts): Promise<sdk.MigrationResult> => {
up: async ({ bp }: sdk.ModuleMigrationOpts): Promise<sdk.MigrationResult> => {
try {
enum FLAG_REASON {
auto_hook = 'auto_hook',
Expand Down

0 comments on commit 08a35f2

Please sign in to comment.