This commit is contained in:
2025-09-09 00:10:53 +03:00
parent 38f2a05107
commit 204fc092d7
239 changed files with 22447 additions and 9536 deletions

View File

@@ -2,8 +2,8 @@ const AuthService = require('../services/auth.service');
class AuthController {
async login(req, res) {
if (req.sheepId && req.sheepRole) {
const result = await AuthService.findUserByID(req.sheepId, req.sheepRole);
if (req.sheepId) {
const result = await AuthService.findUserByID(req.sheepId, req.mode);
if (result) {
return res.status(200).send(result);
} else {