Skip to content

Commit

Permalink
fix: queue submit app id (#52)
Browse files Browse the repository at this point in the history
* fix: queue submit app id

* chore: bump client version
  • Loading branch information
drochetti authored Feb 21, 2024
1 parent e0b7627 commit c3173cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/client/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 1 addition & 2 deletions libs/client/src/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c3173cf

Please sign in to comment.