get features
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
2024-04-22 21:44:22 +03:00
parent 58707c475c
commit a5466f6bff
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ func (f *FeedbackService) GetBySessionID(sessionID string) ([]*models.Feedback,
} }
func (f *FeedbackService) GetByProjectID(projectID string) ([]*models.Feedback, error) { func (f *FeedbackService) GetByProjectID(projectID string) ([]*models.Feedback, error) {
return f.db.Feedback.GetByProjectID(models.FeedbackType(projectID)) return f.db.Feedback.GetByProjectID(projectID)
} }
func (f *FeedbackService) Upvote(sessionID, feedbackUUID string) error { func (f *FeedbackService) Upvote(sessionID, feedbackUUID string) error {

View File

@@ -46,7 +46,7 @@ func (t *Feedback) GetByUUID(uuid string) (*models.Feedback, error) {
return &ticket, nil return &ticket, nil
} }
func (t *Feedback) GetByProjectID(projectID models.FeedbackType) ([]*models.Feedback, error) { func (t *Feedback) GetByProjectID(projectID string) ([]*models.Feedback, error) {
var tickets []*models.Feedback var tickets []*models.Feedback
res := t.db. res := t.db.