From 71b1667b4a75bd6f58f2c3848fae56d2a87cfdc0 Mon Sep 17 00:00:00 2001 From: Wes Date: Thu, 12 Sep 2024 20:26:40 -0700 Subject: [PATCH] fix: encryption type on pubsub events for topic --- backend/controller/dal/pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/dal/pubsub.go b/backend/controller/dal/pubsub.go index 094bfe5b42..447735c42b 100644 --- a/backend/controller/dal/pubsub.go +++ b/backend/controller/dal/pubsub.go @@ -22,7 +22,7 @@ import ( func (d *DAL) PublishEventForTopic(ctx context.Context, module, topic, caller string, payload []byte) error { var encryptedPayload encryption.EncryptedAsyncColumn - err := d.encryption.EncryptJSON(payload, &encryptedPayload) + err := d.encryption.Encrypt(payload, &encryptedPayload) if err != nil { return fmt.Errorf("failed to encrypt payload: %w", err) }