Skip to content

Commit 19f63f2

Browse files
authored
Merge pull request #197 from TomStrong/158-clean-the-code
formatted and cleaned the code
2 parents 299bfed + 35b0fd0 commit 19f63f2

File tree

7 files changed

+4
-6
lines changed

7 files changed

+4
-6
lines changed

controllers/index.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ export const userdocs = (req, res) => {
6565
return res.render('user-docs', {
6666
i18n: res,
6767
});
68-
}
68+
};

controllers/poi.controller.js

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import { POI } from '../models/Poi.js';
1717
import mongoose from 'mongoose';
1818
import * as AzureStorage from '../models/AzureStorage.js';
19-
import e from 'express';
2019

2120
export const getPois = async (req, res) => {
2221
try {

controllers/user.controller.js

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { POI } from '../models/Poi.js';
1818
import bcrypt from 'bcrypt';
1919
import jwt from 'jsonwebtoken';
2020
import mongoose from 'mongoose';
21-
import cookieParser from 'cookie-parser';
2221

2322
export const getUserById = async (req, res) => {
2423
try {

public/album.css

Whitespace-only changes.
File renamed without changes.

public/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let watchId;
2121
const geoBtn = document.getElementById('enableGeolocation');
2222
const revokeBtn = document.getElementById('revokeGeolocation');
2323
const customIcon = L.icon({
24-
iconUrl: 'currentlocationicon.png',
24+
iconUrl: './icons/currentlocationicon.png',
2525
iconSize: [32, 32], // Adjust the size as needed
2626
iconAnchor: [16, 32],
2727
popupAnchor: [0, -32],

public/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ async function responseHandler(response, noredirect = false) {
1818
alert(data.message);
1919
if (response.status !== 200 && response.status !== 201) return false;
2020
if (data.token) localStorage.setItem('token', data.token);
21-
if (data.redirect && !noredirect) window.location.replace(data.redirect);
21+
if (data.redirect && !noredirect) window.location.replace(data.redirect);
2222
return data;
23-
};
23+
}

0 commit comments

Comments
 (0)