mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 12:07:07 +03:00
add userID to getSkipSegments
This commit is contained in:
@@ -53,7 +53,8 @@ async function prepareCategorySegments(req: Request, videoID: VideoID, category:
|
|||||||
UUID: chosenSegment.UUID,
|
UUID: chosenSegment.UUID,
|
||||||
locked: chosenSegment.locked,
|
locked: chosenSegment.locked,
|
||||||
votes: chosenSegment.votes,
|
votes: chosenSegment.votes,
|
||||||
videoDuration: chosenSegment.videoDuration
|
videoDuration: chosenSegment.videoDuration,
|
||||||
|
userID: chosenSegment.userID,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ describe("getSkipSegments", () => {
|
|||||||
assert.strictEqual(data[0].votes, 1);
|
assert.strictEqual(data[0].votes, 1);
|
||||||
assert.strictEqual(data[0].locked, 0);
|
assert.strictEqual(data[0].locked, 0);
|
||||||
assert.strictEqual(data[0].videoDuration, 100);
|
assert.strictEqual(data[0].videoDuration, 100);
|
||||||
|
assert.strictEqual(data[0].userID, "testman");
|
||||||
done();
|
done();
|
||||||
})
|
})
|
||||||
.catch(err => done(err));
|
.catch(err => done(err));
|
||||||
|
|||||||
Reference in New Issue
Block a user