Skip to content

Commit 85d3252

Browse files
committed
fix: 🐛 批量添加
resovle #78
1 parent ed97432 commit 85d3252

File tree

1 file changed

+1
-1
lines changed
  • internal/server/handlers

1 file changed

+1
-1
lines changed

internal/server/handlers/sub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ func batchCreateSub(c *gin.Context) {
240240
return
241241
}
242242

243-
subs := make([]*sub.Data, 0, len(reqs))
243+
subs := make([]*sub.Data, len(reqs))
244244
for i, req := range reqs {
245245
subData := req.GenData(0)
246246
subs[i] = &subData

0 commit comments

Comments
 (0)