Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed logs #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions client/src/views/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default defineComponent({

data() {
return {
api_key: "api_key" as string
api_key: "pk.eyJ1IjoiYmFsaW50OTgiLCJhIjoiY2tyeGZ5ZnNkMDhwaDJxbXJienVjZGtxYiJ9.Gixcjxo2t3df_-rFdl8Hhw" as string
}

},
Expand Down Expand Up @@ -114,7 +114,6 @@ export default defineComponent({
const locationToEdit: Location = this.locations.find((location) => location._id == id) ?? {} as Location;
this.setEdited(JSON.parse(JSON.stringify(locationToEdit)));
const desc = prompt('Enter description');
console.log(desc);
this.edited.description = desc ?? "sample";
await this.saveLocation();
}
Expand Down
5 changes: 1 addition & 4 deletions server/src/services/location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ export class LocationService {
if(!location){
throw new Error('Location not found with id: ' + locationData._id);
}

console.log(locationData);


Object.assign(location, locationData);
console.log(location);
await location.save();
} catch(ex){
throw ex;
Expand Down