add userID to getSkipSegments

This commit is contained in:
Michael C
2021-10-27 17:03:16 -04:00
parent d0b1608181
commit 9d761815d8
2 changed files with 3 additions and 1 deletions

View File

@@ -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,
})); }));
} }

View File

@@ -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));