Skip to content

Commit

Permalink
chore(): remove unused lines
Browse files Browse the repository at this point in the history
  • Loading branch information
purnimagupta committed May 22, 2020
1 parent 11ea7f9 commit 3386494
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 28 deletions.
18 changes: 0 additions & 18 deletions src/exceptions/HttpException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,3 @@ class HttpException extends Error {
}

export default HttpException;

// //TODO: convert to functional class
// class AppError extends Error {
// constructor(message) {
// super();
// // Maintains proper stack trace for where our error was thrown (only available on V8)
// if (Error.captureStackTrace) {
// Error.captureStackTrace(this, this.constructor);
// }
// this.error = true;
// this.name = this.constructor.name;
// this.message = message;
// this.code = 'application/unknown-error';
// }
// }


// module.exports = AppError
9 changes: 1 addition & 8 deletions src/models/user-model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// export {};
// const mongoose = require('mongoose');
import * as mongoose from 'mongoose';
import User from '../interfaces/user.interface';
/**
Expand All @@ -15,9 +13,4 @@ import User from '../interfaces/user.interface';
firstName: { type: String }
})

module.exports = mongoose.model<User & mongoose.Document>('User', userSchema);

// module.exports.User = User;

// "start": "node ./bin/www",
// "devstart": "nodemon ./bin/www"
module.exports = mongoose.model<User & mongoose.Document>('User', userSchema);
3 changes: 1 addition & 2 deletions src/route-controllers/upload-photo-contoller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as express from 'express';
const dbOperations = require('../database/db-operations');
import Post from '../interfaces/post.interface'
const Post = require('../models/posts-model');
const upload = require('../services/upload-photo-aws');
import NotAuthorizedException from '../exceptions/NotAuthorizedException';
Expand Down Expand Up @@ -70,4 +69,4 @@ class PhotoController {
}
}

export default PhotoController;
export default PhotoController;

0 comments on commit 3386494

Please sign in to comment.