fix(ticket): close ticket number concurrency gap

This commit is contained in:
mlogclub
2026-05-02 19:29:04 +08:00
parent fa9d431cbe
commit 0fed6dc144
5 changed files with 164 additions and 32 deletions
@@ -8,7 +8,7 @@ import (
)
func init() {
register(8, "sync lightweight ticket permissions", func() error {
register(8, "sync lightweight ticket permissions and reset ticket data", func() error {
return sqls.WithTransaction(func(ctx *sqls.TxContext) error {
if err := resetLightweightTicketData(ctx.Tx); err != nil {
return err