Fixing broken object reference

This commit is contained in:
Justin Dalrymple 2017-09-24 10:01:21 -04:00
parent 02f75a7f10
commit 67df1c8772
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "node-gitlab-api",
"version": "1.1.0",
"version": "1.1.1",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"main": "src/index.js",
"directories": {},

View File

@ -19,7 +19,7 @@ class BaseModel {
}
get(endpoint, options) {
if (!options.page) {
if (options && !options.page) {
return getAllPages(this.client, endpoint, options);
}