Fix transaction object unused
@@ -24,7 +24,7 @@ public class MinerRepository : IMinerRepository
const string query = @"SELECT * FROM miner_settings WHERE poolid = @poolId AND address = @address";
- var entity = await con.QuerySingleOrDefaultAsync<Entities.MinerSettings>(query, new {poolId, address});
+ var entity = await con.QuerySingleOrDefaultAsync<Entities.MinerSettings>(query, new {poolId, address}, tx);
return mapper.Map<MinerSettings>(entity);
}
