fix: queue submit app id (#52)

* fix: queue submit app id

* chore: bump client version
This commit is contained in:
Daniel Rochetti 2024-02-21 08:26:22 -08:00 committed by GitHub
parent e0b7627f7a
commit c3173cfa00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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",

View File

@ -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',