Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
affanv14 committed May 8, 2024
1 parent d1ff2ff commit 4f152e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions indexer/packages/postgres/src/query-builders/upsert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ export default class UpsertQueryBuilder<M extends Model, R = M[]> extends QueryB
const idColumn = modelClass.idColumn;
const idColumns: string[] = Array.isArray(idColumn) ? idColumn : [idColumn];


const tableDefinedId = `${modelClass.tableName}.${idColumn}`;

const knex = modelClass.knex();

const cols: string[] = Object.keys(object);
Expand Down
3 changes: 1 addition & 2 deletions indexer/packages/postgres/src/stores/compliance-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ export async function upsert(
): Promise<ComplianceDataFromDatabase> {
const updatedComplianceData: ComplianceDataModel[] = await ComplianceDataModel.query(
Transaction.get(options.txId),
).upsert
(complianceDataToUpsert).returning('*');
).upsert(complianceDataToUpsert).returning('*');

return updatedComplianceData[0];
}
Expand Down

0 comments on commit 4f152e9

Please sign in to comment.