bex-twn/src/industry-change-application/industry-change-application...

20 lines
528 B
TypeScript
Raw Normal View History

2022-12-06 12:26:39 +00:00
import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';
import {
IndustryChangeApplication,
IndustryChangeApplicationDocument,
} from './schemas/IndustryChangeApplication.schema';
@Injectable()
export class IndustryChangeApplicationService {
constructor(
@InjectModel(IndustryChangeApplication.name)
private applicationModel: Model<IndustryChangeApplicationDocument>,
) {}
async getAll() {
return this.applicationModel.find();
}
}