Skip to content

Commit

Permalink
总是忘记改这里
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Oct 9, 2024
1 parent 8046ec3 commit b3f0a8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down

0 comments on commit b3f0a8f

Please sign in to comment.