This commit is contained in:
2025-04-07 22:43:52 +10:00
parent 4508b19f4b
commit 7076e9d259
10 changed files with 67 additions and 133 deletions

View File

@ -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)
}