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

formatted and cleaned the code #197

Merged
merged 1 commit into from
Dec 13, 2023
Merged
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
2 changes: 1 addition & 1 deletion controllers/index.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ export const userdocs = (req, res) => {
return res.render('user-docs', {
i18n: res,
});
}
};
1 change: 0 additions & 1 deletion controllers/poi.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import { POI } from '../models/Poi.js';
import mongoose from 'mongoose';
import * as AzureStorage from '../models/AzureStorage.js';
import e from 'express';

export const getPois = async (req, res) => {
try {
Expand Down
1 change: 0 additions & 1 deletion controllers/user.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { POI } from '../models/Poi.js';
import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';
import mongoose from 'mongoose';
import cookieParser from 'cookie-parser';

export const getUserById = async (req, res) => {
try {
Expand Down
Empty file removed public/album.css
Empty file.
File renamed without changes
2 changes: 1 addition & 1 deletion public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let watchId;
const geoBtn = document.getElementById('enableGeolocation');
const revokeBtn = document.getElementById('revokeGeolocation');
const customIcon = L.icon({
iconUrl: 'currentlocationicon.png',
iconUrl: './icons/currentlocationicon.png',
iconSize: [32, 32], // Adjust the size as needed
iconAnchor: [16, 32],
popupAnchor: [0, -32],
Expand Down
4 changes: 2 additions & 2 deletions public/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ async function responseHandler(response, noredirect = false) {
alert(data.message);
if (response.status !== 200 && response.status !== 201) return false;
if (data.token) localStorage.setItem('token', data.token);
if (data.redirect && !noredirect) window.location.replace(data.redirect);
if (data.redirect && !noredirect) window.location.replace(data.redirect);
return data;
};
}
Loading