🐛 Bug fixes

This commit is contained in:
2024-11-03 02:14:56 +08:00
parent 2d119826fe
commit 3f9df23491
14 changed files with 244 additions and 373 deletions

View File

@@ -13,7 +13,7 @@ import (
)
func createAttachmentMultipartPlaceholder(c *fiber.Ctx) error {
user := c.Locals("nex_user").(sec.UserInfo)
user := c.Locals("nex_user").(*sec.UserInfo)
var data struct {
Pool string `json:"pool" validate:"required"`
@@ -69,7 +69,7 @@ func createAttachmentMultipartPlaceholder(c *fiber.Ctx) error {
}
func uploadAttachmentMultipart(c *fiber.Ctx) error {
user := c.Locals("nex_user").(sec.UserInfo)
user := c.Locals("nex_user").(*sec.UserInfo)
rid := c.Params("file")
cid := c.Params("chunk")