Skip to content

Commit

Permalink
Fixed array-to-intcsv fields
Browse files Browse the repository at this point in the history
  • Loading branch information
karer committed Dec 30, 2018
1 parent 2cbdc8b commit 146a94f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions interfaces/IItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class IItem extends ETInterface {
url,
qs: {
app_id: appId,
sku: sku.toString(),
sku: sku ? sku.toString() : undefined,
name,
page,
per_page: perPage,
Expand Down Expand Up @@ -84,7 +84,7 @@ class IItem extends ETInterface {
url,
qs: {
app_id: appId,
def_id_filter: defIdFilter.toString(),
def_id_filter: defIdFilter ? defIdFilter.toString() : undefined,
index_by: indexBy,
page,
per_page: perPage
Expand All @@ -110,7 +110,7 @@ class IItem extends ETInterface {

const res = await this.request.get({
url,
qs: { app_id: appId, def_id: defId.toString() }
qs: { app_id: appId, def_id: defId ? defId.toString() : undefined }
})

if (!res.response) {
Expand Down
9 changes: 8 additions & 1 deletion interfaces/ITrade/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ class ITrade extends ETInterface {

const res = await this.request.get({
url,
qs: { uid, state, type, page, per_page: perPage, ids: ids.toString() }
qs: {
uid,
state,
type,
page,
per_page: perPage,
ids: ids ? ids.toString() : undefined
}
})

if (!res.response) {
Expand Down

0 comments on commit 146a94f

Please sign in to comment.