kontor-echo: setup project to show homepage
This commit is contained in:
@@ -31,9 +31,10 @@ func (repository *ProfileRepository) FindAll(context context.Context) ([]models.
|
||||
return profiles, nil
|
||||
}
|
||||
|
||||
func (repository *ProfileRepository) FindProfileByEmail(context context.Context, email string) (*models.Profile, error) {
|
||||
func (repository *ProfileRepository) FindProfileByEmail(email string) (*models.Profile, error) {
|
||||
var profile models.Profile
|
||||
slog.Info("MediaArticleRepository#GetById", "email", email)
|
||||
context := context.Background()
|
||||
|
||||
err := repository.db.NewSelect().Model(&profile).Where("email = ?", email).Scan(context)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user