Delete Community needs to clear its contact info record, too
This commit is contained in:
@@ -611,7 +611,10 @@ func (c *Community) Delete(ctx context.Context, u *User, ipaddr string, backgrou
|
||||
if err == nil {
|
||||
_, err = tx.ExecContext(ctx, "DELETE FROM propcomm WHERE cid = ?", c.Id)
|
||||
if err == nil {
|
||||
_, err = tx.ExecContext(ctx, "DELETE FROM communities WHERE commid = ?", c.Id)
|
||||
_, err = tx.ExecContext(ctx, "DELETE FROM contacts WHERE owner_commid = ?", c.Id)
|
||||
if err == nil {
|
||||
_, err = tx.ExecContext(ctx, "DELETE FROM communities WHERE commid = ?", c.Id)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user