fix: send issues
This commit is contained in:
@@ -224,7 +224,7 @@ func (m *postsModel) DeleteByID(ctx context.Context, id int64) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SendTo
|
// 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
|
// add record to user_posts
|
||||||
tbl := table.UserPosts
|
tbl := table.UserPosts
|
||||||
stmt := tbl.INSERT(tbl.MutableColumns).MODEL(model.UserPosts{
|
stmt := tbl.INSERT(tbl.MutableColumns).MODEL(model.UserPosts{
|
||||||
|
|||||||
Reference in New Issue
Block a user