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