Skip to content

Commit

Permalink
Merge pull request #118 from tqkoh/change-traqMessage-separator
Browse files Browse the repository at this point in the history
separator を ::: から \n に変えた
  • Loading branch information
oribe1115 authored Dec 27, 2023
2 parents c4956f9 + cfe35fd commit 36e8755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/model/traqMessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func FindMatchingWords(messageList MessageList) ([]*NotifyInfo, error) {
matchedWordsList := make([]*MatchedWords, 0)
err := db.Select(&matchedWordsList, `
SELECT
group_concat(words.word SEPARATOR ':::') AS contacted_words,
group_concat(words.word SEPARATOR '\n') AS contacted_words,
words.trap_id AS trap_id,
users.traq_uuid AS traq_uuid
FROM words
Expand All @@ -114,7 +114,7 @@ func FindMatchingWords(messageList MessageList) ([]*NotifyInfo, error) {

for _, matchedWords := range matchedWordsList {
notifyInfo := &NotifyInfo{
Words: strings.Split(matchedWords.ContactedWords, ":::"),
Words: strings.Split(matchedWords.ContactedWords, "\n"),
NotifyTargetTrapId: matchedWords.TrapID,
NotifyTargetTraqUuid: matchedWords.TraqUUID,
MessageId: messageItem.Id,
Expand Down

0 comments on commit 36e8755

Please sign in to comment.