6 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 066dd233f1 Merge remote-tracking branch 'origin/Lino' into test 2024-08-20 01:43:32 -06:00
4 changed files with 17 additions and 10 deletions
+5 -1
View File
@@ -11,6 +11,10 @@ export class AdscripcionService {
) {} ) {}
async findAll(): Promise<Adscripcion[]> { 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, ProyectosAcademicos,
TipoUsuario, TipoUsuario,
], ],
synchronize: true,
}), }),
}), }),
ServeStaticModule.forRoot({ ServeStaticModule.forRoot({
+7 -7
View File
@@ -11,16 +11,16 @@ import { User } from 'src/users/entities/user.entity';
imports: [ imports: [
UsersModule, UsersModule,
JwtModule.registerAsync({ JwtModule.registerAsync({
inject:[ConfigService], inject: [ConfigService],
useFactory:async(configService:ConfigService)=>{ useFactory: async (configService: ConfigService) => {
return{ return {
global: true, global: true,
secret: configService.get('JWT_SECRET'), secret: configService.get('JWT_SECRET'),
signOptions: { expiresIn: "7h"}, signOptions: { expiresIn: '120h' },
} };
} },
}), }),
TypeOrmModule.forFeature([User]) TypeOrmModule.forFeature([User]),
], ],
providers: [AuthService], providers: [AuthService],
controllers: [AuthController], controllers: [AuthController],
+5 -1
View File
@@ -11,6 +11,10 @@ export class CategoriaService {
) {} ) {}
async findAll(): Promise<Categoria[]> { async findAll(): Promise<Categoria[]> {
return this.categoriaRepository.find(); return this.categoriaRepository.find({
order: {
categoria: 'ASC',
},
});
} }
} }