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