From 2848e6717a5c13fc0ec7859d144cfc83e337833e Mon Sep 17 00:00:00 2001 From: Nico <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:33:08 +0200 Subject: [PATCH] fix: use of former owner's data for sub info --- src/endpoints/renewal/get_subscription_info.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/endpoints/renewal/get_subscription_info.rs b/src/endpoints/renewal/get_subscription_info.rs index d7494a1..2c27be9 100644 --- a/src/endpoints/renewal/get_subscription_info.rs +++ b/src/endpoints/renewal/get_subscription_info.rs @@ -56,7 +56,7 @@ pub async fn handler( let pipeline = vec![ doc! { "$match": doc! { - "owner": to_hex(&query.addr), + "owner": &addr, "_cursor.to": null } }, @@ -101,6 +101,7 @@ pub async fn handler( "$expr": doc! { "$eq": ["$domain", "$$domain_name"] }, + "renewer_address": &addr, "_cursor.to": null } } @@ -124,6 +125,7 @@ pub async fn handler( "$expr": doc! { "$eq": ["$domain", "$$domain_name"] }, + "renewer_address": &addr, "_cursor.to": null } }