Skip to content

Commit

Permalink
fix(hitl2): missing tags column (#4345)
Browse files Browse the repository at this point in the history
* deps

* fix(hitl2): missing tag table
  • Loading branch information
EFF committed Jan 8, 2021
1 parent 54068b6 commit 1bad531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hitlnext/src/backend/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const registerMiddleware = async (bp: typeof sdk, state: StateType) => {

Object.assign(event.payload, {
from: 'agent',
botAvatarUrl: botAvatarUrl || attributes.picture_url
botAvatarUrl: botAvatarUrl || attributes?.picture_url
})

await pipeEvent(event, {
Expand Down
1 change: 1 addition & 0 deletions modules/hitlnext/src/backend/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default async (bp: typeof sdk) => {
table.string('userChannel').notNullable()
table.string('agentThreadId')
table.string('status').notNullable()
table.json('tags')
table.dateTime('assignedAt')
table.dateTime('resolvedAt')
table.dateTime('createdAt').notNullable()
Expand Down

0 comments on commit 1bad531

Please sign in to comment.