mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +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,
|
||||
locked: chosenSegment.locked,
|
||||
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].locked, 0);
|
||||
assert.strictEqual(data[0].videoDuration, 100);
|
||||
assert.strictEqual(data[0].userID, "testman");
|
||||
done();
|
||||
})
|
||||
.catch(err => done(err));
|
||||
|
||||
Reference in New Issue
Block a user