From 1e2f43f958118adad9c76f32e22f1c76d718954e Mon Sep 17 00:00:00 2001 From: Remy Chauveau Date: Mon, 18 Nov 2024 21:10:05 +0100 Subject: [PATCH] Fix query for TokenPriceRPC multiline query --- includes/rpc/TokensPricesRPC.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/rpc/TokensPricesRPC.php b/includes/rpc/TokensPricesRPC.php index a0add55..a5afa49 100644 --- a/includes/rpc/TokensPricesRPC.php +++ b/includes/rpc/TokensPricesRPC.php @@ -84,9 +84,7 @@ function ($matches) { //phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, $wpdb->query($wpdb->prepare( //phpcs:ignore WordPress.DB.PreparedSQLPlaceholders.UnquotedComplexPlaceholder - "INSERT INTO wp_%1s (symbol,contract,token_precision,rate) - VALUES (%s,%s,%d,%.12f) - ON DUPLICATE KEY UPDATE rate = %.12f", + "INSERT INTO wp_%1s (symbol,contract,token_precision,rate) VALUES (%s,%s,%d,%.12f) ON DUPLICATE KEY UPDATE rate = %.12f", XPRCHECKOUT_TABLE_TOKEN_RATES, $mergedToken['pair_base'], $mergedToken['contract'],