Skip to content

Commit 20902dc

Browse files
committed
fix: fix getQueue typing
1 parent 67dcbee commit 20902dc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

packages/client/src/client/Client.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,8 @@ export class Client extends WsClient {
185185
const res = await this.fetchApi("/queue");
186186
const data = await res.json();
187187
return {
188-
Running: data.queue_running.map((prompt: any) => ({
189-
prompt,
190-
remove: { name: "Cancel", cb: () => this.interrupt() },
191-
})),
192-
Pending: data.queue_pending.map((prompt: any) => ({ prompt })),
188+
Running: data.queue_running,
189+
Pending: data.queue_pending,
193190
};
194191
} catch (error) {
195192
console.error(error);

0 commit comments

Comments
 (0)