Compare commits
6 Commits
development
...
test
| Author | SHA1 | Date | |
|---|---|---|---|
| 799219f62a | |||
| 5bae4d1a9e | |||
| 33244bf09d | |||
| de8751c505 | |||
| fecb5e27cd | |||
| 066dd233f1 |
@@ -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',
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ 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: "7h"},
|
signOptions: { expiresIn: '120h' },
|
||||||
}
|
};
|
||||||
}
|
},
|
||||||
}),
|
}),
|
||||||
TypeOrmModule.forFeature([User])
|
TypeOrmModule.forFeature([User]),
|
||||||
],
|
],
|
||||||
providers: [AuthService],
|
providers: [AuthService],
|
||||||
controllers: [AuthController],
|
controllers: [AuthController],
|
||||||
|
|||||||
@@ -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',
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user