* fix: migration script to run on all reporting events * fix: don't update user_id if it is already present * refactor: create a new migration * feat: update schema * feat: ignore events with bot handoff * feat: prefetch conversations with handoff events * Revert "feat: update schema" This reverts commit 25ed2856e62655f5f1db14fd0cffad3a69d0b1fb. * feat: update schema * refactor: separate method get_conversations_with_bot_handoffs * refactor: cognitive complexity * refactor: early return if last_bot_reply is blank * feat: add async_database_migration queue * feat: update queue priority
1.0 KiB
1.0 KiB