| 1 | import { Injectable } from '@nestjs/common' |
| 2 | import { InjectModel } from '@nestjs/mongoose' |
| 3 | import { Model } from 'mongoose' |
| 4 | import { DB_CONNECTION_NAME } from '../common' |
| 5 | import { ChannelWorkDataSnapshot } from '../schemas' |
| 6 | import { BaseRepository } from './base.repository' |
| 7 | |
| 8 | @Injectable() |
| 9 | export class ChannelWorkDataSnapshotRepository extends BaseRepository<ChannelWorkDataSnapshot> { |
| 10 | constructor( |
| 11 | @InjectModel(ChannelWorkDataSnapshot.name, DB_CONNECTION_NAME) |
| 12 | private readonly channelWorkDataSnapshotModel: Model<ChannelWorkDataSnapshot>, |
| 13 | ) { |
| 14 | super(channelWorkDataSnapshotModel) |
| 15 | } |
| 16 | } |
| 17 |