From e0d84348f5fa23b99c0315089ed56fc16018a638 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 20 Mar 2019 20:46:24 +0100 Subject: added a db argument to the function signature --- db_actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_actions.go b/db_actions.go index 14f618d..2d0dea3 100644 --- a/db_actions.go +++ b/db_actions.go @@ -525,7 +525,7 @@ func GetStar(db *sql.DB, starID int64) structs.Star2D { } // getStarIDTimestep returns the timestep the given starID is currently inside of -func GetStarIDTimestep(starID int64) int64 { +func GetStarIDTimestep(db *sql.DB, starID int64) int64 { var timestep int64 // get the star from the stars table -- cgit 1.4.1