feat: track received image outcomes

This commit is contained in:
jjbrunton committed 2026-08-08 18:53:11 +01:00
1 parent 50de1c180d
commit d819a0f1e6
15 files changed
+145 -21

No files matched your search

+2
View File
@@ -81,6 +81,7 @@ describe('Database Client', () => {
const columnNames = columns.map(c => c.name);
expect(columnNames).toContain('got_response');
expect(columnNames).toContain('response_checked_at');
expect(columnNames).toContain('got_image');
});
it('adds strategy_id column', () => {
@@ -157,6 +158,7 @@ describe('Database Client', () => {
expect(columnMap.get('sent_at')?.notnull).toBe(1);
expect(columnMap.get('post_id')?.notnull).toBe(0); // nullable — chat rows have no post
expect(columnMap.get('chat_room_id')).toBeDefined();
expect(columnMap.get('got_image')).toBeDefined();
});
it('successful_messages has correct schema', () => {