Skip to content

Commit

Permalink
updated tag.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbeefcake committed Dec 5, 2023
1 parent b5ce9bf commit d1ab8be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions query-node/mappings/src/label/tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export async function processAssignTagToThread(
const { tagId, threadId } = metadata

if (!isLead) {
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId })
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId.toString() })
}

await getByIdOrFail(store, ForumThread, threadId)
Expand Down Expand Up @@ -138,7 +138,7 @@ export async function processAssignTagToProposal(
const { tagId, proposalId } = metadata

if (!isLead) {
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId })
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId.toString() })
}

await getByIdOrFail(store, Proposal, proposalId)
Expand Down Expand Up @@ -170,7 +170,7 @@ export async function processUnassignTagFromThread(
const { tagId, threadId } = metadata

if (!isLead) {
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId })
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId.toString() })
}

await getByIdOrFail(store, ForumThread, threadId)
Expand All @@ -195,7 +195,7 @@ export async function processUnassignTagFromProposal(
const { tagId, proposalId } = metadata

if (!isLead) {
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId })
await getOneByOrFail(store, TagToWorker, { tagId: tagId, workerId: workerId.toString() })
}

await getByIdOrFail(store, Proposal, proposalId)
Expand Down

0 comments on commit d1ab8be

Please sign in to comment.