blob: 564e2a617e5b72ae363a57526759ccbc789e6743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { Application } from '@feathersjs/express';
import { Poll } from 'which-types';
export default class Profiles {
app!: Application;
async get(id: string): Promise<Poll[]> {
return this.app.service('polls').find({
query: {
authorId: id
}
});
}
setup (app: Application) {
this.app = app;
}
}
|