Add meilisearch for user and event

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-26 02:16:23 +08:00
parent 3dbcc00a2d
commit 6681ffccdf
19 changed files with 229 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ func Checkin(c *gin.Context) {
// Get event id from query
eventIdOrig, ok := c.GetQuery("event_id")
if !ok {
c.JSON(403, gin.H{
c.JSON(400, gin.H{
"status": "undefinded event id",
})
return
@@ -33,6 +33,7 @@ func Checkin(c *gin.Context) {
c.JSON(500, gin.H{
"status": "error parsing string to uuid",
})
return
}
data.UpdateCheckin(userId.(uuid.UUID), eventId, time.Now())
c.JSON(200, gin.H{