wip
This commit is contained in:
parent
2cb0511dba
commit
bcd65d290d
23 changed files with 48 additions and 43 deletions
|
|
@ -2,8 +2,8 @@
|
|||
* Module dependencies
|
||||
*/
|
||||
import $ from 'cafy';
|
||||
import Post from '../../models/post';
|
||||
import User, { pack } from '../../models/user';
|
||||
import Post, { pack } from '../../models/post';
|
||||
import User from '../../models/user';
|
||||
|
||||
/**
|
||||
* Get posts of a user
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ async function byNative(res, rej, me, query, offset, max) {
|
|||
|
||||
// Serialize
|
||||
res(await Promise.all(users.map(async user =>
|
||||
await serialize(user, me, { detail: true }))));
|
||||
await pack(user, me, { detail: true }))));
|
||||
}
|
||||
|
||||
// Search by Elasticsearch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue