aboutsummaryrefslogtreecommitdiff
path: root/services/profiles/profiles.class.ts
blob: 52d6b4766384fbce0da334bbbe742465244daa3b (plain)
1
2
3
4
5
6
7
8
9
import { PollSchema } from '../../models/polls/poll.schema';
import PollModel from '../../models/polls/poll.model';

export default class Profiles {
  async get(id: string): Promise<PollSchema[]> {
    return PollModel.find({ authorId: id }).lean();
  }
}