Add username and email to feedback email (#3002)
* Add username and email to feedback email * Fix type error
This commit is contained in:
1 parent
e77ddc3d2e
commit
0f5550680a
3 files changed
+10
-6
No files matched your search
@@ -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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user