package liman

import (
	
	
	
	
)

// GetUser searches db and returns matching user
func ( *models.User) (*models.User, error) {
	 := database.Connection().Where(&).First(&)

	if .Error != nil {
		return nil, logger.FiberError(fiber.StatusNotFound, "cannot found user with this id")
	}

	if .RowsAffected > 0 {
		return , nil
	}

	return nil, logger.FiberError(fiber.StatusNotFound, "cannot found user with this id")
}