Skip to content

Commit ca3fb1c

Browse files
committed
fix: resolve broken TokenHash attribute reference
1 parent 6fae22b commit ca3fb1c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,13 @@ payload-specs-fetch:
4545
payload-specs-build:
4646
$(call log,INFO,Building payload specs library ...)
4747
@cd lib_relaysms_payload_specs && \
48-
cargo clean && \
49-
rm -rf generated/* target/ && \
5048
cargo build --release
5149
$(call log,INFO,Payload specs built)
5250

5351
payload-specs-compile: payload-specs-fetch payload-specs-build
5452
$(call log,INFO,Compiling payload specs bindings ...)
5553
@cd lib_relaysms_payload_specs && \
54+
mkdir -p generated && \
5655
cargo run --bin uniffi_bindgen -- generate \
5756
--library target/release/librelaysms_spec_payload.so \
5857
--language python \

grpc_services/v3/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_keys_for_decryption(
4141
raise ValueError("token not found")
4242

4343
token_hash_obj = session.scalar(
44-
select(TokenHash).where(TokenHash.id == token.token_hash_id)
44+
select(TokenHash).where(TokenHash.token_id == token.id)
4545
)
4646
if not token_hash_obj:
4747
raise ValueError("token hash not found")

0 commit comments

Comments
 (0)