Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaidar committed Apr 14, 2019
1 parent 6a454d9 commit 1e21483
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ async function bootstrap() {

app.enableCors();

/**
* we need this because "cookie" is true in csrfProtection
*/
app.use(cookieParser());
// /**
// * we need this because "cookie" is true in csrfProtection
// */
// app.use(cookieParser());

app.use(csurf({ cookie: true }));
// app.use(csurf({ cookie: true }));

/**
* To protect your applications from brute-force attacks
Expand Down
1 change: 0 additions & 1 deletion server/src/todo/entity/todo.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export class TodoEntity {
@CreateDateColumn() updatedOn?: Date;

@ManyToOne(type => UserEntity)
@JoinTable()
owner?: UserEntity;

@OneToMany(type => TaskEntity, task => task.todo)
Expand Down
1 change: 0 additions & 1 deletion server/src/users/entity/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
BeforeInsert,
} from 'typeorm';
import * as bcrypt from 'bcrypt';
import { TodoEntity } from '@todo/entity/todo.entity';

@Entity('user')
export class UserEntity {
Expand Down

0 comments on commit 1e21483

Please sign in to comment.