(sourceUserId: string, sourceChunkId: string)
| 2619 | } |
| 2620 | |
| 2621 | getHubMemoryBySource(sourceUserId: string, sourceChunkId: string): HubMemoryRecord | null { |
| 2622 | const row = this.db.prepare('SELECT * FROM hub_memories WHERE source_user_id = ? AND source_chunk_id = ?').get(sourceUserId, sourceChunkId) as HubMemoryRow | undefined; |
| 2623 | return row ? rowToHubMemory(row) : null; |
| 2624 | } |
| 2625 | |
| 2626 | getHubMemoryById(memoryId: string): HubMemoryRecord | null { |
| 2627 | const row = this.db.prepare('SELECT * FROM hub_memories WHERE id = ?').get(memoryId) as HubMemoryRow | undefined; |
no test coverage detected