summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-17 14:32:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-17 14:32:59 +0900
commit0ede390fefb4aae460deccc09755af85e5af6002 (patch)
treea3d86468bd6ef53e206382a2812eb74e2039ccc5 /src/models
parentFix #4721 Fix #4722 (diff)
downloadsharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.gz
sharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.bz2
sharkey-0ede390fefb4aae460deccc09755af85e5af6002.zip
Refactor
Diffstat (limited to 'src/models')
-rw-r--r--src/models/repositories/user.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts
index 30c77e78ca..36bba05e8e 100644
--- a/src/models/repositories/user.ts
+++ b/src/models/repositories/user.ts
@@ -82,7 +82,7 @@ export class UserRepository extends Repository<User> {
const relation = meId && (meId !== user.id) && opts.detail ? await this.getRelation(meId, user.id) : null;
const pins = opts.detail ? await UserNotePinings.find({ userId: user.id }) : [];
- const profile = opts.detail ? await UserProfiles.findOne({ userId: user.id }).then(ensure) : null;
+ const profile = opts.detail ? await UserProfiles.findOne(user.id).then(ensure) : null;
const falsy = opts.detail ? false : undefined;