updating tag pbs on result tag update

part of #3663
This commit is contained in:
Miodec 2022-10-17 12:23:34 +02:00
parent 07d51d9947
commit 7a678a2cdf

View file

@ -86,7 +86,12 @@ export async function updateTags(
const { tagIds, resultId } = req.body;
await ResultDAL.updateTags(uid, resultId, tagIds);
return new MonkeyResponse("Result tags updated");
const result = await ResultDAL.getResult(uid, resultId);
const user = await getUser(uid, "update tags");
const tagPbs = await checkIfTagPb(uid, user, result);
return new MonkeyResponse("Result tags updated", {
tagPbs,
});
}
interface AddResultData {