beauty corrections

This commit is contained in:
Lukas Bachschwell 2018-11-08 11:42:31 +01:00
parent df822d6ff9
commit 98f9e113d6

View File

@ -30,7 +30,7 @@ func GetSystemDatabase() *sql.DB {
return dbs["system"]
}
// GetDatabase Get orm and user information
// GetDatabaseWithName Get orm and user information
func GetDatabaseWithName(companyName string) (*sql.DB, error) {
if dbs[companyName] != nil {
fmt.Println("DB Already open")
@ -48,6 +48,7 @@ func GetDatabaseWithName(companyName string) (*sql.DB, error) {
}
// TODO: call upper function in this one to reduce code
// GetDatabase Get orm and user information
func GetDatabase(tokenString string) (jwt.MapClaims, *sql.DB, error) {
// validate token