Nettoyer le code en supprimant les importations inutilisées et en décommentant des fonctions pour améliorer la lisibilité.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import storageManager from '../data/storageManager.js';
|
||||
import db from '../../db.js';
|
||||
const storageManager = require('../data/storageManager.js');
|
||||
const db = require('../../db.js');
|
||||
|
||||
function createProjectDirectory(projectId) {
|
||||
const projectPath = `${projectId}`;
|
||||
@@ -69,7 +69,7 @@ async function getMeasurementsByProjectId(projectId) {
|
||||
return res.rows;
|
||||
}
|
||||
|
||||
export {
|
||||
module.exports = {
|
||||
createProjectDirectory,
|
||||
deleteProjectDirectory,
|
||||
getAllProjects,
|
||||
|
||||
Reference in New Issue
Block a user