diff --git a/CHANGELOG_UNRELEASED.md b/CHANGELOG_UNRELEASED.md index 52d9bfaf14..f589587ffd 100644 --- a/CHANGELOG_UNRELEASED.md +++ b/CHANGELOG_UNRELEASED.md @@ -18,6 +18,7 @@ ### Emitter & Flusher +- (bugs) [\#2505](https://github.com/bandprotocol/bandchain/pull/2505) fix bug related ds os table. - (feat) [\#2476](https://github.com/bandprotocol/bandchain/pull/2476) Implemented `historical_bonded_token_on_validators` table - (impv) [\#2495](https://github.com/bandprotocol/bandchain/pull/2495) Implemented `historical_oracle_statuses` table - (impv) [\#2452](https://github.com/bandprotocol/bandchain/pull/2452) Implemented view table to calculate oracle script response time diff --git a/flusher/flusher/handler.py b/flusher/flusher/handler.py index 55eee88aeb..f76324f070 100644 --- a/flusher/flusher/handler.py +++ b/flusher/flusher/handler.py @@ -118,7 +118,7 @@ def handle_new_raw_request(self, msg): self.handle_update_related_ds_os( { "oracle_script_id": self.conn.execute( - select([requests.c.oracle_script_id]).where(accounts.c.id == msg["request_id"]) + select([requests.c.oracle_script_id]).where(requests.c.id == msg["request_id"]) ).scalar(), "data_source_id": msg["data_source_id"], }