(
taskId: string,
topicId: string,
params: { operationId?: string; seq: number },
)
| 44 | } |
| 45 | |
| 46 | async add( |
| 47 | taskId: string, |
| 48 | topicId: string, |
| 49 | params: { operationId?: string; seq: number }, |
| 50 | ): Promise<void> { |
| 51 | await this.db |
| 52 | .insert(taskTopics) |
| 53 | .values({ |
| 54 | operationId: params.operationId, |
| 55 | seq: params.seq, |
| 56 | taskId, |
| 57 | topicId, |
| 58 | userId: this.userId, |
| 59 | workspaceId: this.workspaceId ?? null, |
| 60 | }) |
| 61 | .onConflictDoNothing(); |
| 62 | } |
| 63 | |
| 64 | async updateStatus(taskId: string, topicId: string, status: string): Promise<void> { |
| 65 | await this.db |
no outgoing calls