Skip to content

Commit

Permalink
fix(db-ql): remove res data format
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Oct 7, 2021
1 parent 56ba516 commit 8064384
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/database-ql/src/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class DocumentReference {
}
}

const docs = Util.formatResDocumentData(res.data.list)
const docs = res.data.list
const data: any = docs?.length ? docs[0] : undefined
return {
data: data,
Expand Down
4 changes: 2 additions & 2 deletions packages/database-ql/src/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ export class Query {
}
}

const documents = Util.formatResDocumentData(res.data.list)
// const documents = Util.formatResDocumentData(res.data.list)
const result: any = {
data: documents,
data: res.data.list,
requestId: res.requestId,
ok: true
}
Expand Down

0 comments on commit 8064384

Please sign in to comment.