From b3f0a8f41b64d035098bf1e64f0be38b24b42f3c Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Wed, 9 Oct 2024 23:47:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E6=98=AF=E5=BF=98=E8=AE=B0=E6=94=B9?= =?UTF-8?q?=E8=BF=99=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sparkle/module/tracker/internal/TrackedPeerRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ghostchu/btn/sparkle/module/tracker/internal/TrackedPeerRepository.java b/src/main/java/com/ghostchu/btn/sparkle/module/tracker/internal/TrackedPeerRepository.java index b3d700c..d3f3635 100644 --- a/src/main/java/com/ghostchu/btn/sparkle/module/tracker/internal/TrackedPeerRepository.java +++ b/src/main/java/com/ghostchu/btn/sparkle/module/tracker/internal/TrackedPeerRepository.java @@ -30,7 +30,7 @@ order by RANDOM() limit ?3 @Transactional @Modifying @Query(value = """ - INSERT INTO tracker_peers (req_ip, peer_id, peer_id_human_readable, peer_ip, peer_port, torrent_info_hash, uploaded_offset, downloaded_offset, "left", last_event, user_agent, last_time_seen, peer_geoip, request_geoip, version) \ + INSERT INTO tracker_peers (req_ip, peer_id, peer_id_human_readable, peer_ip, peer_port, torrent_info_hash, uploaded_offset, downloaded_offset, "left", last_event, user_agent, last_time_seen, peer_geoip) \ VALUES (:reqIp, :peerId, :peerIdHumanReadable, :peerIp, :peerPort, :torrentInfoHash, :uploadedOffset, :downloadedOffset, :left, :lastEvent, :userAgent, :lastTimeSeen, CAST(:peerGeoIP AS jsonb)) \ ON CONFLICT (peer_id, torrent_info_hash) DO UPDATE SET \ uploaded_offset = EXCLUDED.uploaded_offset, \