mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-11 00:30:06 +08:00
fix test
This commit is contained in:
@@ -34,14 +34,14 @@ export class OasstApiClient {
|
||||
});
|
||||
}
|
||||
|
||||
async ackTask(taskId: string, messageId: string): Promise<void> {
|
||||
await this.post(`/api/v1/tasks/${taskId}/ack`, {
|
||||
async ackTask(taskId: string, messageId: string): Promise<null> {
|
||||
return this.post(`/api/v1/tasks/${taskId}/ack`, {
|
||||
message_id: messageId,
|
||||
});
|
||||
}
|
||||
|
||||
async nackTask(taskId: string, reason: string): Promise<void> {
|
||||
await this.post(`/api/v1/tasks/${taskId}/nack`, {
|
||||
async nackTask(taskId: string, reason: string): Promise<null> {
|
||||
return this.post(`/api/v1/tasks/${taskId}/nack`, {
|
||||
reason,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user