File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
cerberus/src/web3adapter/watchers
evoting-api/src/web3adapter/watchers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,8 @@ export class PostgresSubscriber implements EntitySubscriberInterface {
181181 // For Message entities, only process if they are system messages
182182 if ( tableName === "messages" ) {
183183 // Check if this is a system message (starts with $$system-message$$)
184- const isSystemMessage = data . content && typeof data . content === 'string' && data . content . startsWith ( '$$system-message$$' ) ;
184+ const isSystemMessage = data . text && data . text . includes ( '$$system-message$$' ) ;
185+
185186
186187 if ( ! isSystemMessage ) {
187188 console . log ( "📝 Skipping non-system message:" , data . id ) ;
Original file line number Diff line number Diff line change @@ -305,8 +305,7 @@ export class PostgresSubscriber implements EntitySubscriberInterface {
305305
306306 // For Message entities, only process if they are system messages
307307 if ( tableName === "messages" ) {
308- // Check if this is a system message (starts with $$system-message$$)
309- const isSystemMessage = data . content && typeof data . content === 'string' && data . content . startsWith ( '$$system-message$$' ) ;
308+ const isSystemMessage = data . text && data . text . includes ( '$$system-message$$' ) ;
310309
311310 if ( ! isSystemMessage ) {
312311 console . log ( "📝 Skipping non-system message:" , data . id ) ;
You can’t perform that action at this time.
0 commit comments