2026-01-21 15:13:21 -06:00
|
|
|
import { Injectable } from '@nestjs/common';
|
|
|
|
|
import { CreateBitacoraMesaDto } from './dto/create-bitacora_mesa.dto';
|
2026-01-21 17:10:49 -06:00
|
|
|
import { InjectRepository } from '@nestjs/typeorm';
|
|
|
|
|
import { BitacoraMesa } from './entities/bitacora_mesa.entity';
|
|
|
|
|
import { Repository } from 'typeorm';
|
2026-01-21 15:13:21 -06:00
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
|
export class BitacoraMesaService {
|
2026-01-21 17:10:49 -06:00
|
|
|
constructor(
|
|
|
|
|
@InjectRepository(BitacoraMesa)
|
|
|
|
|
private readonly bitacoraMesaRepository: Repository<BitacoraMesa>,
|
|
|
|
|
) {}
|
2026-01-21 15:13:21 -06:00
|
|
|
create(createBitacoraMesaDto: CreateBitacoraMesaDto) {
|
|
|
|
|
return 'This action adds a new bitacoraMesa';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
findAll() {
|
2026-01-21 17:10:49 -06:00
|
|
|
return this.bitacoraMesaRepository.find({relations:['mesa','alumno_inscrito'],take:100});
|
2026-01-21 15:13:21 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
findOne(id: number) {
|
|
|
|
|
return `This action returns a #${id} bitacoraMesa`;
|
|
|
|
|
}
|
|
|
|
|
}
|