Skip to content

Commit 5ced74d

Browse files
committed
Comment out postedBy logic in post
1 parent 5c48e3a commit 5ced74d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/resolvers/Mutation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ const jwt = require('jsonwebtoken')
33
const { APP_SECRET, getUserId } = require('../utils')
44

55
function post(parent, { url, description }, context) {
6-
const userId = getUserId(context)
6+
// const userId = getUserId(context)
77
return context.prisma.createLink({
88
url,
99
description,
10+
/*
1011
postedBy: {
1112
connect: {
1213
id: userId
1314
}
1415
}
16+
*/
1517
})
1618
}
1719

0 commit comments

Comments
 (0)