diff --git a/backend/app/models/posts.go b/backend/app/models/posts.go index 40c5e00..c3d3d0b 100644 --- a/backend/app/models/posts.go +++ b/backend/app/models/posts.go @@ -224,7 +224,7 @@ func (m *postsModel) DeleteByID(ctx context.Context, id int64) error { } // SendTo -func (m *postsModel) SendTo(ctx context.Context, userId, postId int64) error { +func (m *postsModel) SendTo(ctx context.Context, postId, userId int64) error { // add record to user_posts tbl := table.UserPosts stmt := tbl.INSERT(tbl.MutableColumns).MODEL(model.UserPosts{