Skip to content

Commit

Permalink
fix(db-proxy): remove stale objectid logic
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Oct 7, 2021
1 parent ce91a36 commit 56ba516
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/database-proxy/src/dbi/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ export class Request implements RequestInterface {
const accessor = this.accessor
const params = Proxy.parse(action, data)
const ret = await accessor.execute(params)
// 解决 mongodb _id 对象字符串问题
const _data = JSON.parse(JSON.stringify(ret))

return {
code: 0,
data: _data
data: ret
}
}
}

0 comments on commit 56ba516

Please sign in to comment.