Compare commits
1 Commits
test
..
development
| Author | SHA1 | Date | |
|---|---|---|---|
| e811f67c07 |
@@ -11,10 +11,8 @@ export class AdscripcionService {
|
||||
) {}
|
||||
|
||||
async findAll(): Promise<Adscripcion[]> {
|
||||
return await this.adscripcionRepository.find({
|
||||
order: {
|
||||
adscripcion: 'ASC',
|
||||
}
|
||||
return this.adscripcionRepository.find({
|
||||
order: { adscripcion: 'ASC' }, // Change 'adscripcion' to your desired column for ordering
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ import { ImagenModule } from './images/images.module';
|
||||
ProyectosAcademicos,
|
||||
TipoUsuario,
|
||||
],
|
||||
synchronize: true,
|
||||
}),
|
||||
}),
|
||||
ServeStaticModule.forRoot({
|
||||
|
||||
@@ -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: '120h' },
|
||||
};
|
||||
},
|
||||
signOptions: { expiresIn: "7h"},
|
||||
}
|
||||
}
|
||||
}),
|
||||
TypeOrmModule.forFeature([User]),
|
||||
TypeOrmModule.forFeature([User])
|
||||
],
|
||||
providers: [AuthService],
|
||||
controllers: [AuthController],
|
||||
|
||||
@@ -11,10 +11,6 @@ export class CategoriaService {
|
||||
) {}
|
||||
|
||||
async findAll(): Promise<Categoria[]> {
|
||||
return this.categoriaRepository.find({
|
||||
order: {
|
||||
categoria: 'ASC',
|
||||
},
|
||||
});
|
||||
return this.categoriaRepository.find({ order: { categoria: 'ASC' } });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,8 @@ export class EdificioService {
|
||||
) {}
|
||||
|
||||
async findAll(): Promise<Edificio[]> {
|
||||
return this.categoriaRepository.find();
|
||||
return this.categoriaRepository.find({
|
||||
order: { edificio: 'ASC' }, // Change 'edificio' to your desired column for ordering
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user