Skip to content

Commit 1ef2cc5

Browse files
committed
fix: remove unnecessary string replacement in phone number retrieval
1 parent caa120d commit 1ef2cc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/life/mosu/mosuserver/application/notify/NotifyService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class NotifyService {
3232
retryFor = {CustomRuntimeException.class}
3333
)
3434
public void notify(LunaNotificationEvent event) {
35-
String phone = retrievePhoneNumberByUserId(event.userId()).replaceFirst("^.", "");
35+
String phone = retrievePhoneNumberByUserId(event.userId());
3636
LunaNotificationVariable notifyVariable = notifyVariableFactory.create(event);
3737
NotifySender<LunaNotificationVariable> sender = senderResolver.resolve(event.status());
3838

0 commit comments

Comments
 (0)