mirror of
https://github.com/typicode/json-server.git
synced 2025-07-31 22:25:05 +08:00
Fix CLI regressions and refactor
This commit is contained in:
@ -122,6 +122,7 @@ module.exports = function (db, name) {
|
||||
if (otherResource
|
||||
&& otherResource.trim().length > 0
|
||||
&& db.object[otherResource]) {
|
||||
|
||||
var query = {}
|
||||
var prop = pluralize.singular(name) + 'Id'
|
||||
query[prop] = id
|
||||
|
Reference in New Issue
Block a user