Skip to content

Commit

Permalink
0.0.532
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 16, 2024
1 parent 3d30f0a commit d455603
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ services:
- 'DEEPLINKS_HASURA_SSL=${DEEPLINKS_HASURA_SSL}'
- 'DEEPLINKS_HASURA_SECRET=${DEEPLINKS_HASURA_SECRET}'
- 'JWT_SECRET=${DEEP_HASURA_GRAPHQL_JWT_SECRET}'
- 'DEEPLINKS_HASURA_STORAGE_URL=${DEEPLINKS_HASURA_STORAGE_URL}'
logging:
driver: "json-file"
options:
Expand Down
5 changes: 3 additions & 2 deletions imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1453,8 +1453,9 @@ export class DeepClient<L extends Link<Id> = Link<Id>> implements DeepClientInst
return { ...q, data: (q)?.data?.m0?.returning, error: e };
}
if (file) {
if (!toApply?.[0]?.id) throw new Error('Cannot insert file without link');
await upload(toApply[0].id, file, this);
const id = (q)?.data?.m0?.returning?.[0]?.id;
if (!id) throw new Error('Cannot insert file without link');
await upload(id, file, this);
};
} else {
this.emitter.emit('insert', { deep: this, name: _name, value: objects, options, remoteQuery: mutate, file, remote, local });
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.531",
"version": "0.0.532",
"license": "Unlicense",
"type": "module",
"main": "import.js",
Expand Down

0 comments on commit d455603

Please sign in to comment.