Skip to content

Commit

Permalink
code format update
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyaoi committed Nov 21, 2018
1 parent 2244ffb commit da0af6a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions discovery/src/parse/index.ts
Expand Up @@ -25,16 +25,16 @@ async function getCount(limit: number) {
const results: any[] = await query.find();
const result: CountResult[] = [];
for (let i = 0; i < results.length; i++) {
let pojo_result:PojoResult = results[i].toJSON()
let each_result: CountResult = {
const pojo_result: PojoResult = results[i].toJSON();
const each_result: CountResult = {
user: pojo_result.user,
model: pojo_result.model,
registry: pojo_result.registry,
updatedAt: pojo_result.updatedAt,
}
result.push(each_result)
};
result.push(each_result);
}
console.log(result)
console.log(result);
return result;
}

Expand Down

0 comments on commit da0af6a

Please sign in to comment.