fix: queue submit app id (#52)
* fix: queue submit app id * chore: bump client version
This commit is contained in:
parent
e0b7627f7a
commit
c3173cfa00
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@fal-ai/serverless-client",
|
||||
"description": "The fal serverless JS/TS client",
|
||||
"version": "0.8.4",
|
||||
"version": "0.8.5",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@ -269,12 +269,11 @@ export const queue: Queue = {
|
||||
id: string,
|
||||
options: SubmitOptions<Input>
|
||||
): Promise<EnqueueResult> {
|
||||
const [appOwner, appAlias] = ensureAppIdFormat(id).split('/');
|
||||
const { webhookUrl, path = '', ...runOptions } = options;
|
||||
const query = webhookUrl
|
||||
? '?' + new URLSearchParams({ fal_webhook: webhookUrl }).toString()
|
||||
: '';
|
||||
return send(`${appOwner}/${appAlias}`, {
|
||||
return send(id, {
|
||||
...runOptions,
|
||||
subdomain: 'queue',
|
||||
method: 'post',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user