From 8949d76d26dfc811323fb7a2d48cce60999cc2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 7 Jun 2024 13:40:49 +0200 Subject: [PATCH] Fix zap receipt not being stored correctly fixes #194 --- app/controllers/webhooks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/webhooks_controller.rb b/app/controllers/webhooks_controller.rb index bc7d15f..0b0fcde 100644 --- a/app/controllers/webhooks_controller.rb +++ b/app/controllers/webhooks_controller.rb @@ -13,7 +13,7 @@ class WebhooksController < ApplicationController paid_at: Time.parse(@payload[:settled_at]).to_i, preimage: @payload[:preimage] ) - @zap.update! receipt: @zap_receipt.to_h + @zap.update! receipt: zap_receipt.to_h NostrManager::PublishZapReceipt.call(zap: @zap) end