Skip to content

Commit

Permalink
fix: fields corrections
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav C <[email protected]>
  • Loading branch information
pranavxc committed Mar 29, 2023
1 parent 0f790e9 commit 5161784
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1517,10 +1517,10 @@ class BaseModelSqlv2 {

const res = {};
let view: View;
let fields: string[] = [];
let fields: string[];

if (fieldsSet?.size) {
viewOrTableColumns = await this.model.getColumns();
viewOrTableColumns = _columns || (await this.model.getColumns());
} else {
view = await View.get(viewId);
const viewColumns = viewId && (await View.getColumns(viewId));
Expand Down

0 comments on commit 5161784

Please sign in to comment.