Skip to content

Commit d1ab8be

Browse files
committed
updated tag.ts
1 parent b5ce9bf commit d1ab8be

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • query-node/mappings/src/label

query-node/mappings/src/label/tag.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)