mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
Fix undefined options bug
This commit is contained in:
@ -70,7 +70,7 @@ function createApp(db, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run(db, options) {
|
function run(db, options) {
|
||||||
options = _.defaults(options, defaultOptions);
|
options = _.defaults(options || {}, defaultOptions);
|
||||||
|
|
||||||
var app = createApp(db, options);
|
var app = createApp(db, options);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user