Skip to content

Commit c86c1e4

Browse files
committed
code clean up
1 parent b5c162a commit c86c1e4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/todo/services/todo.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
/*
2-
All the business logic is here
3-
*/
4-
5-
const TaskModel = require('../models/task');
1+
const Task = require('../models/task');
62

73
class TodoService {
84
static getTasks() {
9-
return TaskModel.find();
5+
return Task.find();
106
}
117

12-
static async getTasksById(id) {
13-
return TaskModel.findById(id);
8+
static getTasksById(id) {
9+
return Task.findById(id);
1410
}
1511
}
1612

0 commit comments

Comments
 (0)