(chunkId: string)
| 1925 | } |
| 1926 | |
| 1927 | private getHubMemoryForChunk(chunkId: string): any { |
| 1928 | if (this.sharingRole === "hub") { |
| 1929 | const db = (this.store as any).db; |
| 1930 | return db.prepare("SELECT * FROM hub_memories WHERE source_chunk_id = ? LIMIT 1").get(chunkId); |
| 1931 | } |
| 1932 | const ts = this.store.getTeamSharedChunk(chunkId); |
| 1933 | if (ts && this.isCurrentClientHubInstance(ts.hubInstanceId)) { |
| 1934 | return { source_chunk_id: chunkId, visibility: ts.visibility, group_id: ts.groupId }; |
| 1935 | } |
| 1936 | return undefined; |
| 1937 | } |
| 1938 | |
| 1939 | private getHubTaskForLocal(taskId: string): any { |
| 1940 | if (this.sharingRole === "hub") { |
no test coverage detected