Skip to content

Commit

Permalink
[skip ci] Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
JvstvsHD committed Oct 2, 2024
1 parent 8067ac2 commit f685569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build project and generate JavaDocs
on:
push:
branches: [ "**"]
pull_request:
pull_request:
branches:
- "**"
jobs:
publish:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.velocitypowered.api.proxy.messages.MinecraftChannelIdentifier;
import com.zaxxer.hikari.HikariDataSource;
import de.chojo.sadu.core.databases.Database;
import de.chojo.sadu.core.exceptions.ThrowingConsumer;
import de.chojo.sadu.core.jdbc.RemoteJdbcConfig;
import de.chojo.sadu.core.updater.SqlVersion;
import de.chojo.sadu.datasource.DataSourceCreator;
Expand Down Expand Up @@ -271,7 +272,7 @@ private Class<? extends java.sql.Driver> getDriverClass(String type) {

@SuppressWarnings("UnstableApiUsage")
private void updateDatabase() throws IOException, SQLException {
Consumer<Connection> preUpdateHook = connection -> {
ThrowingConsumer<Connection, SQLException> preUpdateHook = connection -> {
var updatedReasons = Query.query("SELECT reason, punishment_id FROM necrify_punishment WHERE reason LIKE '%§%';")
.single()
.map(row -> {
Expand Down

0 comments on commit f685569

Please sign in to comment.