beauty corrections
This commit is contained in:
		@@ -30,7 +30,7 @@ func GetSystemDatabase() *sql.DB {
 | 
				
			|||||||
	return dbs["system"]
 | 
						return dbs["system"]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetDatabase Get orm and user information
 | 
					// GetDatabaseWithName Get orm and user information
 | 
				
			||||||
func GetDatabaseWithName(companyName string) (*sql.DB, error) {
 | 
					func GetDatabaseWithName(companyName string) (*sql.DB, error) {
 | 
				
			||||||
	if dbs[companyName] != nil {
 | 
						if dbs[companyName] != nil {
 | 
				
			||||||
		fmt.Println("DB Already open")
 | 
							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
 | 
					// TODO: call upper function in this one to reduce code
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetDatabase Get orm and user information
 | 
					// GetDatabase Get orm and user information
 | 
				
			||||||
func GetDatabase(tokenString string) (jwt.MapClaims, *sql.DB, error) {
 | 
					func GetDatabase(tokenString string) (jwt.MapClaims, *sql.DB, error) {
 | 
				
			||||||
	// validate token
 | 
						// validate token
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user