Skip to content

Commit

Permalink
formatted and cleaned the code
Browse files Browse the repository at this point in the history
  • Loading branch information
5thaks07 committed Dec 13, 2023
1 parent 0b89397 commit 35b0fd0
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 6 deletions.
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;
};
}

0 comments on commit 35b0fd0

Please sign in to comment.