mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Remove extra semicolon
This commit is contained in:
@ -158,7 +158,7 @@ module.exports = function (source) {
|
|||||||
_embed.forEach(function (otherResource) {
|
_embed.forEach(function (otherResource) {
|
||||||
if (otherResource && otherResource.trim().length > 0) {
|
if (otherResource && otherResource.trim().length > 0) {
|
||||||
// Skip non-existent collections
|
// Skip non-existent collections
|
||||||
if (!db.object[otherResource]) return;
|
if (!db.object[otherResource]) return
|
||||||
var query = {}
|
var query = {}
|
||||||
query[req.params.resource + 'Id'] = req.params.id
|
query[req.params.resource + 'Id'] = req.params.id
|
||||||
resource[otherResource] = db(otherResource).where(query)
|
resource[otherResource] = db(otherResource).where(query)
|
||||||
|
Reference in New Issue
Block a user