Skip to content

Commit

Permalink
Merge pull request #240 from Digital-Engineering/fix/imports-main
Browse files Browse the repository at this point in the history
fix select statement on imports
  • Loading branch information
DnOberon authored and GitHub Enterprise committed Feb 20, 2023
2 parents f5f1e6c + e1930bf commit bf97c1e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ export default class ImportRepository extends Repository implements RepositoryIn
super(ImportMapper.tableName);

// in order to select the composite fields we must redo the initial query
this._query.SELECT = [
`SELECT ${this._tableAlias}.*,
this._query.SELECT = [`${this._tableAlias}.*,
SUM(CASE WHEN (data_staging.errors IS NOT NULL
AND data_staging.errors != '{}')
AND data_staging.import_id = ${this._tableAlias}.id
Expand Down

0 comments on commit bf97c1e

Please sign in to comment.