Skip to content

Commit

Permalink
feat: v3.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Mar 2, 2022
1 parent 847f881 commit 81b5dea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodepress",
"version": "3.9.1",
"version": "3.9.2",
"description": "RESTful API service for Surmon.me blog",
"author": {
"name": "Surmon",
Expand Down
26 changes: 13 additions & 13 deletions src/modules/feedback/feedback.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ import { mongoosePaginate } from '@app/utils/paginate'
import { IPLocation } from '@app/processors/helper/helper.service.ip'

export enum FeedbackEmotion {
Hate = 1,
Dislike = 2,
Terrible = 1,
Bad = 2,
Neutral = 3,
Like = 4,
Love = 5,
Great = 4,
Amazing = 5,
}

const emotionMap = new Map(
[
{
value: FeedbackEmotion.Hate,
text: FeedbackEmotion[FeedbackEmotion.Hate],
value: FeedbackEmotion.Terrible,
text: FeedbackEmotion[FeedbackEmotion.Terrible],
emoji: '😠',
},
{
value: FeedbackEmotion.Dislike,
text: FeedbackEmotion[FeedbackEmotion.Dislike],
value: FeedbackEmotion.Bad,
text: FeedbackEmotion[FeedbackEmotion.Bad],
emoji: '🙁',
},
{
Expand All @@ -50,13 +50,13 @@ const emotionMap = new Map(
emoji: '😐',
},
{
value: FeedbackEmotion.Like,
text: FeedbackEmotion[FeedbackEmotion.Like],
emoji: '😀',
value: FeedbackEmotion.Great,
text: FeedbackEmotion[FeedbackEmotion.Great],
emoji: '😃',
},
{
value: FeedbackEmotion.Love,
text: FeedbackEmotion[FeedbackEmotion.Love],
value: FeedbackEmotion.Amazing,
text: FeedbackEmotion[FeedbackEmotion.Amazing],
emoji: '🥰',
},
].map((item) => [item.value, item])
Expand Down

0 comments on commit 81b5dea

Please sign in to comment.