From 9a98c88180febd293dac45858f7a725d013fa478 Mon Sep 17 00:00:00 2001 From: Luftalian Date: Sun, 16 Jun 2024 00:54:36 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=AB=E5=B0=BE=E3=81=AE=E3=82=BB=E3=83=9F?= =?UTF-8?q?=E3=82=B3=E3=83=AD=E3=83=B3=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/model/date_vote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/date_vote.go b/server/model/date_vote.go index 9300be9..2fbb24b 100644 --- a/server/model/date_vote.go +++ b/server/model/date_vote.go @@ -49,7 +49,7 @@ func (repo *Repository) CreateDateVotes(votes []DateVote) error { func (repo *Repository) GetDateVotesByUser(traqID string) ([]DateVoteAndEventID, error) { dateVoteAndEventID := make([]DateVoteAndEventID, 0) - err := repo.db.Select(&dateVoteAndEventID, "SELECT event_dates.event_id FROM date_votes JOIN event_dates ON date_votes.event_date_id = event_dates.id WHERE date_votes.traq_id = ?;", traqID) + err := repo.db.Select(&dateVoteAndEventID, "SELECT event_dates.event_id FROM date_votes JOIN event_dates ON date_votes.event_date_id = event_dates.id WHERE date_votes.traq_id = ?", traqID) if err != nil { return nil, err }