Skip to content

Commit

Permalink
account for malformatted starter messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 8, 2024
1 parent cf5d394 commit 0a59efe
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def upgrade() -> None:
FROM jsonb_array_elements(starter_messages) elem
)
WHERE starter_messages IS NOT NULL
"""
AND jsonb_typeof(starter_messages) = 'array'
"""
)
)

Expand All @@ -41,6 +42,7 @@ def downgrade() -> None:
FROM jsonb_array_elements(starter_messages) elem
)
WHERE starter_messages IS NOT NULL
"""
AND jsonb_typeof(starter_messages) = 'array'
"""
)
)

0 comments on commit 0a59efe

Please sign in to comment.