fix characters not updating on edit post and (hopefully) the bug preventing post deletions sometimes.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -267,9 +267,14 @@ func (r *postRepository) Delete(ctx context.Context, post models.Post) error {
|
||||
return err
|
||||
}
|
||||
|
||||
_ = q.GenerateLogTSVector(ctx, post.LogID)
|
||||
err = tx.Commit()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return tx.Commit()
|
||||
_ = psqlcore.New(r.db).GenerateLogTSVector(ctx, post.LogID)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *postRepository) post(post psqlcore.SelectPostRow) *models.Post {
|
||||
|
||||
Reference in New Issue
Block a user