blob: c89678900f7258bae299081324e8a3ddd1ece8da (
plain)
1
2
3
4
5
6
7
8
9
|
import { Poll, PollSchema } from '../../models/polls/poll.schema';
import PollModel from '../../models/polls/poll.model';
export default class Profiles {
async get(id: string, params: any): Promise<PollSchema[]> {
return PollModel.find({ authorId: id }).lean<Poll>();
}
}
|