Skip to content

Commit

Permalink
Return list as objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ianpogi5 committed Aug 25, 2020
1 parent 7ff00b1 commit ef8a2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/db/ops/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const list = async function list({ data = {} } = {}) {
};

const res = await this.db('query', params);
return res.Items.map((i) => new this(i));
return res.Items.map((i) => new this(i).toObject());
};

export default list;

0 comments on commit ef8a2de

Please sign in to comment.