We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbb36f0 commit cfb9b9eCopy full SHA for cfb9b9e
controllers/index.js
@@ -97,8 +97,8 @@ module.exports = {
97
},
98
99
async returnWorkers(ctx) {
100
- const workers = await User.find();
101
try {
+ const workers = await User.find();
102
ctx.body = {
103
workers,
104
};
@@ -111,8 +111,8 @@ module.exports = {
111
112
async returnUser(ctx) {
113
const data = ctx.request.body;
114
- const user = await User.findOne({ _id: data._id });
115
+ const user = await User.findOne({ _id: data._id });
116
117
user,
118
0 commit comments