Skip to content

Commit 60addf3

Browse files
committed
fix: yes
1 parent 40292b1 commit 60addf3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/routes/embed.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package routes
22

33
import (
4-
"encoding/json"
54
"fmt"
6-
"skycrypt/src/constants"
7-
redis "skycrypt/src/db"
8-
"skycrypt/src/models"
95
"time"
106

117
"github.com/gofiber/fiber/v2"
@@ -15,7 +11,7 @@ func EmbedHandler(c *fiber.Ctx) error {
1511
timeNow := time.Now()
1612

1713
uuid := c.Params("uuid")
18-
profileId := c.Params("profileId")
14+
/*profileId := c.Params("profileId")
1915
embed, err := redis.Get(fmt.Sprintf("embed:%s:%s", uuid, profileId))
2016
if err != nil {
2117
c.Status(400)
@@ -26,11 +22,11 @@ func EmbedHandler(c *fiber.Ctx) error {
2622
if err := json.Unmarshal([]byte(embed), &embedData); err != nil {
2723
c.Status(500)
2824
return c.JSON(constants.InternalServerError)
29-
}
25+
}*/
3026

3127
fmt.Printf("Returning /api/embed/%s in %s\n", profileId, time.Since(timeNow))
3228

3329
return c.JSON(fiber.Map{
34-
"embed": embedData,
30+
"embed": uuid,
3531
})
3632
}

0 commit comments

Comments
 (0)