Submission UUID generation moved to function

See issue #139
This commit is contained in:
Nanobyte
2020-10-06 15:59:32 +02:00
parent 7dcdc883e4
commit cce20319ad
3 changed files with 18 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
const getHash = require('./getHash.js');
module.exports = function getSubmissionUUID(videoID, category, userID,
startTime, endTime) {
return getHash('v2-categories' + videoID + startTime + endTime + category +
userID, 1);
};