blob: 3461cbc3478cef9561c4ccdb26a71053d1b143ba (
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): void {
this.app = app;
}
}
|