mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
parent
07d51d9947
commit
7a678a2cdf
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue