(db: DatabaseAdapter, messageAlias: string, memberAlias: string)
| 498 | } |
| 499 | |
| 500 | function nonSystemMessageCondition(db: DatabaseAdapter, messageAlias: string, memberAlias: string): string { |
| 501 | return `(${messageAlias}.type NOT IN (${SYSTEM_MESSAGE_TYPES_SQL}) |
| 502 | AND ${nonSystemMemberIdentityCondition(db, memberAlias)})` |
| 503 | } |
| 504 | |
| 505 | function nonSystemMemberIdentityCondition(db: DatabaseAdapter, memberAlias: string): string { |
| 506 | return `(LOWER(COALESCE(${memberAlias}.platform_id, '')) != 'system' |
no test coverage detected