From 312b1986551dda475900b0eb8443905e093190e0 Mon Sep 17 00:00:00 2001 From: Vince Jerald Villamora Date: Mon, 14 Nov 2022 19:03:43 +0800 Subject: [PATCH] fix(load-callback): set recipient of viber callbacks properly --- .../com/abavilla/fpi/load/service/load/RewardsCallbackSvc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fpi-load-api-core/src/main/java/com/abavilla/fpi/load/service/load/RewardsCallbackSvc.java b/fpi-load-api-core/src/main/java/com/abavilla/fpi/load/service/load/RewardsCallbackSvc.java index 83efc01..eba2379 100644 --- a/fpi-load-api-core/src/main/java/com/abavilla/fpi/load/service/load/RewardsCallbackSvc.java +++ b/fpi-load-api-core/src/main/java/com/abavilla/fpi/load/service/load/RewardsCallbackSvc.java @@ -251,7 +251,7 @@ private Uni sendToBotSource(RewardsTransStatus rewardsTransStatus, UserDto us .chain(() -> telegramReqApi.sendMsg(msgrMsg, user.getId())); } case VIBER -> { - msgrMsg.setRecipient(user.getTelegramId()); + msgrMsg.setRecipient(user.getViberId()); yield viberReqApi.sendMsg(msgrMsg, user.getId()); } default -> Uni.createFrom().voidItem();