summaryrefslogtreecommitdiff
path: root/src/api/endpoints/users/show.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/users/show.ts')
-rw-r--r--src/api/endpoints/users/show.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/endpoints/users/show.ts b/src/api/endpoints/users/show.ts
index 8e74b0fe3f..7aea59296a 100644
--- a/src/api/endpoints/users/show.ts
+++ b/src/api/endpoints/users/show.ts
@@ -2,8 +2,7 @@
* Module dependencies
*/
import $ from 'cafy';
-import User from '../../models/user';
-import serialize from '../../serializers/user';
+import User, { pack } from '../../models/user';
/**
* Show a user
@@ -41,7 +40,7 @@ module.exports = (params, me) => new Promise(async (res, rej) => {
}
// Send response
- res(await serialize(user, me, {
+ res(await pack(user, me, {
detail: true
}));
});