diff options
author | Emile <hanemile@protonmail.com> | 2019-03-20 20:31:14 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-03-20 20:31:14 +0100 |
commit | fe0d8d81b47aa614e2a2b3dfa54f781d876e01a2 (patch) | |
tree | 2149c12d6eeca7206fa1c848c09aa19c8a99e10e | |
parent | 33c5bb6c383a54c6abf4946567d609bcdb2fb18e (diff) |
the GetStar function now uses a given db.
-rw-r--r-- | db_actions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db_actions.go b/db_actions.go index a51bcfc..a9098af 100644 --- a/db_actions.go +++ b/db_actions.go @@ -499,7 +499,7 @@ func getQuadrantNodeID(parentNodeID int64, quadrant int64) int64 { } // GetStar returns the star with the given ID from the stars table -func GetStar(starID int64) structs.Star2D { +func GetStar(db *sql.DB, starID int64) structs.Star2D { var x, y, vx, vy, m float64 // get the star from the stars table |