add many to one in todo, fix bugs, notification about todos
This commit is contained in:
@@ -123,10 +123,8 @@ export const getAllUsers = async (req, res) => {
|
||||
|
||||
res.status(200).json({
|
||||
success: true,
|
||||
data: {
|
||||
users: allUsers,
|
||||
count: allUsers.length,
|
||||
},
|
||||
count: allUsers.length,
|
||||
data: allUsers,
|
||||
});
|
||||
} catch (error) {
|
||||
const errorResponse = formatErrorResponse(error, process.env.NODE_ENV === 'development');
|
||||
|
||||
Reference in New Issue
Block a user