Skip to content

Commit

Permalink
feat(jdbc): implementation of log repository
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Jun 17, 2022
1 parent 6daa39a commit 8b3fcbd
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,8 @@ public List<LogEntry> findByExecutionIdAndTaskRunId(String executionId, String t

@Override
public LogEntry save(LogEntry log) {
Map<Field<Object>, Object> finalFields = this.jdbcRepository.persistFields(log);

this.jdbcRepository
.getDslContext()
.transaction(configuration -> DSL
.using(configuration)
.insertInto(this.jdbcRepository.getTable())
.set(finalFields)
.execute()
);
Map<Field<Object>, Object> fields = this.jdbcRepository.persistFields(log);
this.jdbcRepository.persist(log, fields);

return log;
}
Expand Down

0 comments on commit 8b3fcbd

Please sign in to comment.