Skip to content

Commit 0e603a6

Browse files
刘志杰刘志杰
authored andcommitted
update getMemberDetailsByHandle to fix the findUnique issue
1 parent e16c2f4 commit 0e603a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ async function getMemberInfoByIdList (idList) {
161161
*/
162162
async function getMemberDetailsByHandle (handle) {
163163
try {
164-
// logger.warn(`getMemberIdByHandle ${handle}`)
165-
const handleLower = _.toLower(handle)
166164
const profile = await prisma.memberProfile.findUnique({
167165
where: {
168-
handleLower,
169-
handle
166+
handle_handleLower: {
167+
handle,
168+
handleLower: _.toLower(handle)
169+
}
170170
},
171171
select: {
172172
userId: true,

0 commit comments

Comments
 (0)