Skip to content

Commit

Permalink
Fix replica identity changes when using subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Jun 2, 2023
1 parent db26c62 commit 087c414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function parse(x, state, parsers, handle, transform) {
i += 4
const key = x[i] === 75
handle(key || x[i] === 79
? tuples(x, key ? relation.keys : relation.columns, i += 3, transform).row
? tuples(x, relation.columns, i += 3, transform).row
: null
, {
command: 'delete',
Expand All @@ -205,7 +205,7 @@ function parse(x, state, parsers, handle, transform) {
i += 4
const key = x[i] === 75
const xs = key || x[i] === 79
? tuples(x, key ? relation.keys : relation.columns, i += 3, transform)
? tuples(x, relation.columns, i += 3, transform)
: null

xs && (i = xs.i)
Expand Down

0 comments on commit 087c414

Please sign in to comment.