Merge branch 'Lino' of https://github.com/IO420/api-nexus into Carlos

This commit is contained in:
2025-09-18 13:43:53 -06:00
45 changed files with 938 additions and 135 deletions
+5 -8
View File
@@ -1,14 +1,10 @@
import {
Injectable,
Logger,
NotFoundException,
UnauthorizedException,
} from '@nestjs/common';
import { Injectable, NotFoundException } from '@nestjs/common';
import { Response } from 'express';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { InjectRepository } from '@nestjs/typeorm';
import { User } from './entities/user.entity';
import { Repository } from 'typeorm';
import { JwtService } from '@nestjs/jwt';
@Injectable()
export class UserService {
@@ -32,6 +28,7 @@ export class UserService {
}
async Login(data: CreateUserDto) {
return await this.findOneByNameandPassword(data);
const user = await this.findOneByNameandPassword(data);
return user;
}
}