fix group tenant topic creation

This commit is contained in:
richjohnrambo
2026-09-23 09:59:53 +08:00
parent 6fa3009987
commit 35a70ce9ff
3 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -1235,7 +1235,7 @@ func (a *adapter) TenantGroupCreate(id t.TenantID, topic *t.Topic, owner t.Uid,
return err
}
defer tx.Rollback()
if err = a.topicCreate(tx, topic); err != nil {
if err = tenantTopicCreate(tx, topic); err != nil {
return err
}
ownerSub := &t.Subscription{TenantID: id, ObjHeader: t.ObjHeader{CreatedAt: topic.CreatedAt}, User: owner.String(),