Skip to content

Commit

Permalink
Fix: Merge error of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zoernert committed Feb 5, 2024
1 parent 828f3a7 commit 9c418cc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions framework/services/asset.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,26 +126,13 @@ module.exports = {
"clientMeta.location.country" : "text"
}
*/
<<<<<<< HEAD
let query = {"assetId" : {$regex : ctx.params.q}};
if(typeof ctx.params.type !== 'undefined') {
query.type = ctx.params.type;
}
let res = await db.collection("assets").find(query).toArray();
for(let i=0;i<res.length;i++) {
delete res[i]._id;
=======
let query = {"assetId" : {$regex : ctx.params.q}};
if(typeof ctx.params.type !== 'undefined') {
query.type = ctx.params.type;
}
let res = [];
if(typeof db !== 'undefined') {
res = await db.collection("assets").find(query).toArray();
for(let i=0;i<res.length;i++) {
delete res[i]._id;
}
>>>>>>> 953c7d1924a207459fbcfa1ef8430cf37c8fce83
}
return res;
}
Expand Down

0 comments on commit 9c418cc

Please sign in to comment.