Skip to content

Commit

Permalink
loc functionning
Browse files Browse the repository at this point in the history
  • Loading branch information
Snunesnk committed Jan 29, 2024
1 parent c8038f9 commit 6fd276a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions front/src/Components/ProfileMatching/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ const ProfileMatching = () => {

const getLocation = async () => {
const loc = await getUserLocation()
console.log(loc)

if (loc.lat !== null && loc.lng !== null) {
ApiService.get('/location', {
ApiService.post('/location', {
lat: loc.lat,
lng: loc.lng,
})
Expand Down
4 changes: 2 additions & 2 deletions server/app/handlers/user.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ export default class {
user.token = crypto.randomBytes(64).toString("base64url");
user.token += "_mail_timestamp_" + Date.now();
const userChange = await User.updateByLogin(login, user);
console.log(userChange)
console.log(userChange);

res.status(200).send({
message: "SUCCESS",
});
Expand Down

0 comments on commit 6fd276a

Please sign in to comment.