fix: remove unused scoresMap variables in moderation service
This commit is contained in:
parent
c6aa867b0c
commit
17d9df47e1
|
|
@ -362,12 +362,6 @@ func (s *ModerationService) FlagPost(ctx context.Context, postID uuid.UUID, scor
|
||||||
|
|
||||||
// Create user violation record if we have the user ID
|
// Create user violation record if we have the user ID
|
||||||
if userID != uuid.Nil {
|
if userID != uuid.Nil {
|
||||||
scoresMap := map[string]float64{
|
|
||||||
"hate": scores.Hate,
|
|
||||||
"greed": scores.Greed,
|
|
||||||
"delusion": scores.Delusion,
|
|
||||||
}
|
|
||||||
|
|
||||||
// This would require the AppealService, but for now we'll create a simple violation record
|
// This would require the AppealService, but for now we'll create a simple violation record
|
||||||
violationQuery := `
|
violationQuery := `
|
||||||
SELECT create_user_violation($1, $2, $3, $4)
|
SELECT create_user_violation($1, $2, $3, $4)
|
||||||
|
|
@ -406,12 +400,6 @@ func (s *ModerationService) FlagComment(ctx context.Context, commentID uuid.UUID
|
||||||
|
|
||||||
// Create user violation record if we have the user ID
|
// Create user violation record if we have the user ID
|
||||||
if userID != uuid.Nil {
|
if userID != uuid.Nil {
|
||||||
scoresMap := map[string]float64{
|
|
||||||
"hate": scores.Hate,
|
|
||||||
"greed": scores.Greed,
|
|
||||||
"delusion": scores.Delusion,
|
|
||||||
}
|
|
||||||
|
|
||||||
// This would require the AppealService, but for now we'll create a simple violation record
|
// This would require the AppealService, but for now we'll create a simple violation record
|
||||||
violationQuery := `
|
violationQuery := `
|
||||||
SELECT create_user_violation($1, $2, $3, $4)
|
SELECT create_user_violation($1, $2, $3, $4)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue