Skip to content

Commit

Permalink
Use user id from authstore
Browse files Browse the repository at this point in the history
  • Loading branch information
aleda145 committed Aug 2, 2022
1 parent 9655f83 commit 47e6618
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ export default function Dashboard({ client, setIsLoggedIn }) {

const addMutation = useMutation(
(url) => {
// return axios.post(getApiDomain() + "/scrape", url);
// return "ok";
return client.Records.create("user_nums", {
user: "KoDn7hCUaY8BIGG",
user: client.AuthStore.model.id,
num: 42,
});
},
Expand Down

0 comments on commit 47e6618

Please sign in to comment.