mirror of
https://github.com/bestnite/igdb-database.git
synced 2025-06-17 10:13:18 +08:00
u
This commit is contained in:
@ -14,7 +14,7 @@ import (
|
||||
func FetchAndStore[T any](
|
||||
e endpoint.EntityEndpoint[T],
|
||||
) {
|
||||
total, err := e.GetLastOneId()
|
||||
total, err := e.Count()
|
||||
if err != nil {
|
||||
log.Fatalf("failed to get %s length: %v", e.GetEndpointName(), err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user