Commit f97aea8a authored by Ai-Sasit's avatar Ai-Sasit

ลืมนิดหน่อย

parent 497b1f80
......@@ -14,7 +14,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"
)
var categoryCollection *mongo.Collection = configs.GetCollection(configs.DB, "categorys")
var categoryCollection *mongo.Collection = configs.GetCollection(configs.DB, "categories")
func CreateCategory(c *fiber.Ctx) error {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment