rogueserver/api/daily/rankingspagecount.go

21 lines
441 B
Go
Raw Normal View History

2024-04-29 12:32:58 -07:00
// Copyright (C) 2024 Pagefault Games - All Rights Reserved
// https://github.com/pagefaultgames
package daily
import (
"log"
2024-04-29 12:22:27 -07:00
"github.com/pagefaultgames/rogueserver/db"
)
// /daily/rankingpagecount - fetch daily ranking page count
func RankingPageCount(category int) (int, error) {
pageCount, err := db.FetchRankingPageCount(category)
if err != nil {
log.Print("failed to retrieve ranking page count")
}
return pageCount, nil
}