Skip to content

Commit 47b463d

Browse files
committed
readme
1 parent b153e4d commit 47b463d

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ File uploads to R2 typically use signed urls. The R2 component provides hooks fo
113113
// const user = await userFromAuth(ctx);
114114
// ...validate that the user can upload to this bucket
115115
},
116-
onUpload: async (ctx, key) => {
117-
// ...do something with the key
118-
// Runs in the `syncMetadata` mutation, before the upload is performed from the
119-
// client side. Convenient way to create relations between the newly created
120-
// object key and other data in your Convex database. Runs after the `checkUpload`
121-
// callback.
116+
onUpload: async (ctx, bucket, key) => {
117+
// ...do something with the key
118+
// This technically runs in the `syncMetadata` mutation, as the upload
119+
// is performed from the client side. Will run if using the `useUploadFile`
120+
// hook, or if `syncMetadata` function is called directly. Runs after the
121+
// `checkUpload` callback.
122122
},
123123
});
124124
```

example/eslint.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ export default tseslint.config(
2828
],
2929

3030
"no-unused-vars": "off",
31-
"@typescript-eslint/no-unused-vars": [
32-
"warn",
33-
{
34-
argsIgnorePattern: "^_",
35-
varsIgnorePattern: "^_",
36-
},
37-
],
31+
"@typescript-eslint/no-unused-vars": "off",
3832
},
3933
}
4034
);

0 commit comments

Comments
 (0)