add many to one in todo, fix bugs, notification about todos

This commit is contained in:
richardtekula
2025-11-24 11:30:25 +01:00
parent 8fd8f991e8
commit 125e30338a
5 changed files with 381 additions and 24 deletions

View File

@@ -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');