Skip to content

Commit 4be25df

Browse files
vip-gitVipin
authored andcommitted
fix: linting errors and resolve temporary issues
1 parent ef01bc8 commit 4be25df

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
MONGODB_URI=mongodb://localhost:27017/tsstarterdb
2+
3+
SECRET=YOUR_SECRET

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tmp
1818
public/css/main.css
1919

2020
# API keys and secrets
21-
.env
21+
# .env [Temporary]
2222

2323
# Dependency directory
2424
node_modules

src/common/middlewares/auth.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class AuthMiddleware implements IMiddleware {
3333
* @param req
3434
*/
3535
private extractHeaderFromRequest(req: Request): string {
36-
const authHeader = req.headers.authorization;
36+
const authHeader: any = req.headers.authorization;
3737

3838
if (authHeader && authHeader.split(' ')[0] === 'Bearer') {
3939
return authHeader.split(' ')[1];

src/common/services/tvmaze/tvmaze.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class TvMazeService {
3434
return await fetch('http://api.tvmaze.com/shows?' + queryString)
3535
.then(res => res.json())
3636
.then(json => _.chain(json)
37-
.map(function(values) {
37+
.map(function(values: any) {
3838
values._links.self.href = _.replace(values._links.self.href,
3939
'api.tvmaze.com', 'localhost:3000/api');
4040
values._links.previousepisode.href = _.replace(values._links.previousepisode.href,

0 commit comments

Comments
 (0)