From bbcbe3388ab851165dfdb063fa1381dbce46ddf2 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Wed, 6 Feb 2019 11:37:03 +0100 Subject: [PATCH] upd(messaging): message_attachment prefix in code --- messaging/repository/attachment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/messaging/repository/attachment.go b/messaging/repository/attachment.go index 1bd089cbd..8280f97ba 100644 --- a/messaging/repository/attachment.go +++ b/messaging/repository/attachment.go @@ -43,7 +43,7 @@ const ( sqlAttachmentByMessageID = `SELECT ` + sqlAttachmentColumns + `, rel_message FROM attachments AS a - INNER JOIN message_attachment AS ma ON a.id = ma.rel_attachment + INNER JOIN messaging_message_attachment AS ma ON a.id = ma.rel_attachment WHERE ma.rel_message IN (?) AND ` + sqlAttachmentScope ErrAttachmentNotFound = repositoryError("AttachmentNotFound") @@ -99,7 +99,7 @@ func (r *attachment) BindAttachment(attachmentId, messageId uint64) error { RelMessage uint64 `db:"rel_message"` }{attachmentId, messageId} - return r.db().Insert("message_attachment", bond) + return r.db().Insert("messaging_message_attachment", bond) } func (r *attachment) CountOwned(userID uint64) (c int, err error) {