@@ -109,7 +109,7 @@ export async function processAssignTagToThread(
109109 const { tagId, threadId } = metadata
110110
111111 if ( ! isLead ) {
112- await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId } )
112+ await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId . toString ( ) } )
113113 }
114114
115115 await getByIdOrFail ( store , ForumThread , threadId )
@@ -138,7 +138,7 @@ export async function processAssignTagToProposal(
138138 const { tagId, proposalId } = metadata
139139
140140 if ( ! isLead ) {
141- await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId } )
141+ await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId . toString ( ) } )
142142 }
143143
144144 await getByIdOrFail ( store , Proposal , proposalId )
@@ -170,7 +170,7 @@ export async function processUnassignTagFromThread(
170170 const { tagId, threadId } = metadata
171171
172172 if ( ! isLead ) {
173- await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId } )
173+ await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId . toString ( ) } )
174174 }
175175
176176 await getByIdOrFail ( store , ForumThread , threadId )
@@ -195,7 +195,7 @@ export async function processUnassignTagFromProposal(
195195 const { tagId, proposalId } = metadata
196196
197197 if ( ! isLead ) {
198- await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId } )
198+ await getOneByOrFail ( store , TagToWorker , { tagId : tagId , workerId : workerId . toString ( ) } )
199199 }
200200
201201 await getByIdOrFail ( store , Proposal , proposalId )
0 commit comments