diff --git a/app/Domains/Contact/ManageContactAddresses/Web/Controllers/ContactModuleAddressImageController.php b/app/Domains/Contact/ManageContactAddresses/Web/Controllers/ContactModuleAddressImageController.php index e5148ed7684..663bf59174f 100644 --- a/app/Domains/Contact/ManageContactAddresses/Web/Controllers/ContactModuleAddressImageController.php +++ b/app/Domains/Contact/ManageContactAddresses/Web/Controllers/ContactModuleAddressImageController.php @@ -14,7 +14,7 @@ class ContactModuleAddressImageController extends Controller { public function show(Request $request, string $vaultId, string $contactId, int $addressId, int $width, int $height) { - $address = Address::where('contact_id', $contactId) + $address = Address::where('vault_id', $vaultId) ->findOrFail($addressId); $url = MapHelper::getStaticImage($address, $width, $height);