Skip to content

Commit 56ba516

Browse files
committed
fix(db-proxy): remove stale objectid logic
1 parent ce91a36 commit 56ba516

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/database-proxy/src/dbi/request.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ export class Request implements RequestInterface {
1515
const accessor = this.accessor
1616
const params = Proxy.parse(action, data)
1717
const ret = await accessor.execute(params)
18-
// 解决 mongodb _id 对象字符串问题
19-
const _data = JSON.parse(JSON.stringify(ret))
2018

2119
return {
2220
code: 0,
23-
data: _data
21+
data: ret
2422
}
2523
}
2624
}

0 commit comments

Comments
 (0)