(memoryId: string)
| 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; |
| 2628 | return row ? rowToHubMemory(row) : null; |
| 2629 | } |
| 2630 | |
| 2631 | deleteHubMemoryBySource(sourceUserId: string, sourceChunkId: string): void { |
| 2632 | this.db.prepare('DELETE FROM hub_memories WHERE source_user_id = ? AND source_chunk_id = ?').run(sourceUserId, sourceChunkId); |
no test coverage detected