11 Commits

Author SHA1 Message Date
miguel 799219f62a Remove ordering from findAll method in EdificioService 2025-06-04 11:10:49 -06:00
miguel 5bae4d1a9e Add ordering to findAll methods in CategoriaService and EdificioService 2025-06-04 11:04:49 -06:00
jorgemike 33244bf09d order adscripcion 2025-04-29 12:22:09 -06:00
jalvarado de8751c505 cambios 2025-04-29 10:53:08 -06:00
TheManus88 fecb5e27cd Merge remote-tracking branch 'origin/development' into test 2024-10-24 20:35:51 -06:00
TheManus88 08aade7dcd paginated 2024-10-24 20:26:40 -06:00
TheManus88 f04f01a39c Merge remote-tracking branch 'origin/Lino' into development 2024-10-14 17:48:25 -06:00
TheManus88 066dd233f1 Merge remote-tracking branch 'origin/Lino' into test 2024-08-20 01:43:32 -06:00
TheManus88 82550eefcc Merge remote-tracking branch 'origin/Lino' into development 2024-07-30 22:22:32 -06:00
TheManus88 c9f883de3c merge into Lino 2024-07-29 19:51:30 -06:00
TheManus88 a23ba6da18 remove db fields and change idprofresor by no autoincremental id 2024-07-25 08:55:18 -06:00
5 changed files with 19 additions and 12 deletions
+2 -2
View File
@@ -57,11 +57,11 @@ export class ProfesorController {
}
@Get("page")
findAllPaginated(@Query("page") page: number = 1, @Query("limit") limit: number = 10, @Query() filters: any) {
findAllPaginated(@Query("page") page: number = 1, @Query("limit") limit: number = 12, @Query() filters: any) {
try {
Logger.debug("Page Profesors");
page = page < 1 ? 1 : page;
limit = limit > 10 || limit < 1 ? 10 : limit;
limit = limit > 12 || limit < 1 ? 12 : limit;
return this.profesorService.findAllPaginated(page, limit, filters);
} catch (err) {
Logger.error("profesor controller ", err.error);
+5 -1
View File
@@ -11,6 +11,10 @@ export class AdscripcionService {
) {}
async findAll(): Promise<Adscripcion[]> {
return this.adscripcionRepository.find();
return await this.adscripcionRepository.find({
order: {
adscripcion: 'ASC',
}
});
}
}
-1
View File
@@ -54,7 +54,6 @@ import { ImagenModule } from './images/images.module';
ProyectosAcademicos,
TipoUsuario,
],
synchronize: true,
}),
}),
ServeStaticModule.forRoot({
+7 -7
View File
@@ -11,16 +11,16 @@ import { User } from 'src/users/entities/user.entity';
imports: [
UsersModule,
JwtModule.registerAsync({
inject:[ConfigService],
useFactory:async(configService:ConfigService)=>{
return{
inject: [ConfigService],
useFactory: async (configService: ConfigService) => {
return {
global: true,
secret: configService.get('JWT_SECRET'),
signOptions: { expiresIn: "7h"},
}
}
signOptions: { expiresIn: '120h' },
};
},
}),
TypeOrmModule.forFeature([User])
TypeOrmModule.forFeature([User]),
],
providers: [AuthService],
controllers: [AuthController],
+5 -1
View File
@@ -11,6 +11,10 @@ export class CategoriaService {
) {}
async findAll(): Promise<Categoria[]> {
return this.categoriaRepository.find();
return this.categoriaRepository.find({
order: {
categoria: 'ASC',
},
});
}
}