about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-20 20:46:24 +0100
committerEmile <hanemile@protonmail.com>2019-03-20 20:46:24 +0100
commite0d84348f5fa23b99c0315089ed56fc16018a638 (patch)
treef783ae69729437582caffe0e9a6a4880f664f423
parent4bf9f11232ce3d754a6ed14af2f60152c6417fcb (diff)
added a db argument to the function signature HEAD main
-rw-r--r--db_actions.go2
1 files changed, 1 insertions, 1 deletions
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