beauty corrections
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user