Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ba10d0

Browse files
committedJul 27, 2023
Fix up
1 parent f54ad87 commit 2ba10d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/main/java/de/presti/ree6/sql/SQLWorker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public boolean isLogSetup(String guildId) {
270270
* @return {@link Boolean} if true, it has been set | if false, it hasn't been set.
271271
*/
272272
public boolean existsLogData(long webhookId, String authToken) {
273-
return getEntity(new WebhookLog(), "FROM WebhookLog WHERE webhookId=:cid AND token=:token", Map.of("cid", webhookId, "token", authToken)) != null;
273+
return getEntity(new WebhookLog(), "FROM WebhookLog WHERE webhookId=:cid AND token=:token", Map.of("cid", String.valueOf(webhookId), "token", authToken)) != null;
274274
}
275275

276276
/**
@@ -281,7 +281,7 @@ public boolean existsLogData(long webhookId, String authToken) {
281281
*/
282282
public void deleteLogWebhook(long webhookId, String authToken) {
283283
WebhookLog webhookLog =
284-
getEntity(new WebhookLog(), "FROM WebhookLog WHERE webhookId=:cid AND token=:token", Map.of("cid", webhookId, "token", authToken));
284+
getEntity(new WebhookLog(), "FROM WebhookLog WHERE webhookId=:cid AND token=:token", Map.of("cid", String.valueOf(webhookId), "token", authToken));
285285

286286
if (webhookLog != null) {
287287
deleteEntity(webhookLog);

0 commit comments

Comments
 (0)
Please sign in to comment.