Skip to content

Commit

Permalink
style : removing unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Aelmeky committed Oct 7, 2023
1 parent 75d3b85 commit cb83aa0
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions clinic/src/api/admin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AdminService from '../service/admin-service.js';
import { EMPTY_SIZE, ERROR_STATUS_CODE, NOT_FOUND_STATUS_CODE, OK_STATUS_CODE } from '../utils/Constants.js';
//import AdminService from '../service/admin-service.js';
//import { EMPTY_SIZE, ERROR_STATUS_CODE, NOT_FOUND_STATUS_CODE, OK_STATUS_CODE } from '../utils/Constants.js';

export const admin = (app) => {

Check failure on line 4 in clinic/src/api/admin.js

View workflow job for this annotation

GitHub Actions / lint-and-test-clinic

'app' is defined but never used
const service = new AdminService();
//const service = new AdminService();

}
6 changes: 3 additions & 3 deletions clinic/src/api/appointment.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AppointmentService from '../service/appointment-service.js';
import { EMPTY_SIZE, ERROR_STATUS_CODE, NOT_FOUND_STATUS_CODE, OK_STATUS_CODE } from '../utils/Constants.js';
//import AppointmentService from '../service/appointment-service.js';
//import { EMPTY_SIZE, ERROR_STATUS_CODE, NOT_FOUND_STATUS_CODE, OK_STATUS_CODE } from '../utils/Constants.js';

export const appointment = (app) => {

Check failure on line 4 in clinic/src/api/appointment.js

View workflow job for this annotation

GitHub Actions / lint-and-test-clinic

'app' is defined but never used
const service = new AppointmentService();
//const service = new AppointmentService();

}
6 changes: 3 additions & 3 deletions clinic/src/api/doctor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DoctorService from '../service/doctor-service.js';
import { EMPTY_SIZE, ERROR_STATUS_CODE, NOT_FOUND_STATUS_CODE, OK_STATUS_CODE } from '../utils/Constants.js';
//import DoctorService from '../service/doctor-service.js';
//import { EMPTY_SIZE, ERROR_STATUS_CODE, NOT_FOUND_STATUS_CODE, OK_STATUS_CODE } from '../utils/Constants.js';

export const doctor = (app) => {

Check failure on line 4 in clinic/src/api/doctor.js

View workflow job for this annotation

GitHub Actions / lint-and-test-clinic

'app' is defined but never used
const service = new DoctorService();
//const service = new DoctorService();

}
12 changes: 6 additions & 6 deletions clinic/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import mongoose from 'mongoose';
import dotenv from 'dotenv';
import { healthpackage } from './api/healthpackage.js';
import { PORT } from './utils/Constants.js';
import {doctor } from './api/doctor.js';
import {appointment } from './api/appointment.js';
import {admin } from './api/admin.js';
//import {doctor } from './api/doctor.js';
//import {appointment } from './api/appointment.js';
//import {admin } from './api/admin.js';


dotenv.config();
Expand All @@ -27,9 +27,9 @@ await connect();
app.use(express.json());

healthpackage(app);
admin(app);
doctor(app);
appointment(app);
//admin(app);
//doctor(app);
//appointment(app);

const port = process.env.PORT || PORT;

Expand Down
2 changes: 1 addition & 1 deletion clinic/src/database/repository/admin-repository.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AdminModel from '../models/Admin.js';
//import AdminModel from '../models/Admin.js';

class AdminRepository{

Expand Down
2 changes: 1 addition & 1 deletion clinic/src/database/repository/appointment-repository.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AppointmentModel from '../models/Admin.js'
//import AppointmentModel from '../models/Admin.js'

class AppointmentRepository{

Expand Down
2 changes: 1 addition & 1 deletion clinic/src/database/repository/doctor-repository.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DoctorModel from '../models/Doctor.js';
//import DoctorModel from '../models/Doctor.js';

class DoctorRepository{

Expand Down
2 changes: 1 addition & 1 deletion clinic/src/service/admin-service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AdminRepository from '../database/repository/admin-repository.js';
//import AdminRepository from '../database/repository/admin-repository.js';

class AdminService{

Expand Down
2 changes: 1 addition & 1 deletion clinic/src/service/appointment-service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AppointmentRepository from '../database/repository/appointment-repository.js';
//import AppointmentRepository from '../database/repository/appointment-repository.js';

class AppointmentService{

Expand Down
2 changes: 1 addition & 1 deletion clinic/src/service/doctor-service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DoctorRepository from '../database/repository/doctor-repository.js';
//import DoctorRepository from '../database/repository/doctor-repository.js';

class DoctorService{

Expand Down

0 comments on commit cb83aa0

Please sign in to comment.