Skip to content

Commit c0438c0

Browse files
committed
isNew is optional and might not be there.
1 parent c42fbe4 commit c0438c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/202503202000_mentions_notifications.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ UPDATE comments
1818
SET
1919
content = regexp_replace (
2020
content,
21-
'@{"id":([0-9]+),"name":"([^"]+)","isNew":(true|false)}',
21+
'@{"id":([0-9]+),"name":"([^"]+)"(,"isNew":(true|false))?}',
2222
'@[\2]',
2323
'g'
2424
)

0 commit comments

Comments
 (0)