aboutsummaryrefslogtreecommitdiff
path: root/services/profiles/profiles.class.ts
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-28 04:13:13 +0300
committerGitHub <noreply@github.com>2020-06-28 04:13:13 +0300
commit8baf96be5ea7880cebe3aeda733b9196950be434 (patch)
tree060c38efa99810284f47411041c45952c6817361 /services/profiles/profiles.class.ts
parent990edc953d734b1f1621fc0f5161c1eb978a3ea0 (diff)
parentbdd8b947e89400606ec1d7e1bd04f3794e942c12 (diff)
downloadwhich-api-8baf96be5ea7880cebe3aeda733b9196950be434.tar.gz
Merge pull request #15 from which-ecosystem/search
Allow searching users
Diffstat (limited to 'services/profiles/profiles.class.ts')
-rw-r--r--services/profiles/profiles.class.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/profiles/profiles.class.ts b/services/profiles/profiles.class.ts
index 3461cbc..a6de474 100644
--- a/services/profiles/profiles.class.ts
+++ b/services/profiles/profiles.class.ts
@@ -1,12 +1,14 @@
import { Application } from '@feathersjs/express';
+import { Params } from '@feathersjs/feathers';
import { Poll } from 'which-types';
export default class Profiles {
app!: Application;
- async get(id: string): Promise<Poll[]> {
+ async get(id: string, params: Params): Promise<Poll[]> {
return this.app.service('polls').find({
+ ...params,
query: {
authorId: id
}