Update libs/client/src/function.ts

Co-authored-by: Daniel Rochetti <daniel.rochetti@gmail.com>
This commit is contained in:
Matteo Ferrando 2023-10-25 12:43:33 -04:00 committed by GitHub
parent d7e9dd1515
commit 48829672cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,10 @@ export const queue: Queue = {
async status(id: string, requestId: string, logs: boolean = true): Promise<QueueStatus> { async status(id: string, requestId: string, logs: boolean = true): Promise<QueueStatus> {
return run(id, { return run(id, {
method: 'get', method: 'get',
path: `/fal/queue/requests/${requestId}/status?logs=${logs ? '1' : '0'}`, path: `/fal/queue/requests/${requestId}/status`,
input: {
logs: logs ? '1' : '0',
},
}); });
}, },
async result<Output>(id: string, requestId: string): Promise<Output> { async result<Output>(id: string, requestId: string): Promise<Output> {