Skip to content

Commit 7c80ecd

Browse files
authored
Fix limit object usage in sample (#1751)
## Changes Refactored `Limit` initialization to use the builder pattern: ```java new Limit.Builder().max(maxLimit).upToRemainingQuota(false).build() ``` This prevents build failures when new fields are added to the `Limit` class.
1 parent a0e62a6 commit 7c80ecd

File tree

1 file changed

+1
-1
lines changed
  • samples/sample-manage-audience/src/main/java/com/linecorp/bot/messagingapidemoapp/controller/message

1 file changed

+1
-1
lines changed

samples/sample-manage-audience/src/main/java/com/linecorp/bot/messagingapidemoapp/controller/message/NarrowcastController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public CompletableFuture<RedirectView> pushNarrowcast(
144144
messageList,
145145
recipientObject,
146146
new Filter(new OperatorDemographicFilter(condition, null, null)),
147-
maxLimit == null ? null : new Limit(maxLimit, false),
147+
maxLimit == null ? null : new Limit.Builder().max(maxLimit).upToRemainingQuota(false).build(),
148148
notificationDisabled
149149
);
150150
return messagingClient.narrowcast(null, narrowcast).thenApply(

0 commit comments

Comments
 (0)