Add username and email to feedback email (#3002)

* Add username and email to feedback email

* Fix type error
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2022-06-07 08:39:47 -06:00
1 parent e77ddc3d2e
commit 0f5550680a
3 files changed
+10 -6

No files matched your search

+2 -1
View File
@@ -895,7 +895,8 @@ const loggedInViewerRouter = createProtectedRouter()
const { rating, comment } = input;
const feedback = {
userId: ctx.user.id,
username: ctx.user.name || "Nameless",
email: ctx.user.email || "No email address",
rating: rating,
comment: comment,
};