import { Injectable } from '@nestjs/common';
import { DataSource } from 'typeorm';

@Injectable()
export class AppointmentCancellationReasonService {
  constructor(private readonly connection: DataSource
  ) { }

  async findAll() {
    const getReasons = await this.connection.query(`select reason from appointment_cancellation_reasons_by_hospitals`)
    return getReasons;
  }
}
