This commit is contained in:
Bryan Ashby 2020-11-29 16:24:51 -07:00
parent 4d42eeb318
commit e05e8a2e35
No known key found for this signature in database
GPG key ID: B49EB437951D2542
3 changed files with 18 additions and 3 deletions

View file

@ -243,6 +243,15 @@ module.exports = class FileEntry {
);
}
static removeUserRatings(userId, cb) {
return fileDb.run(
`DELETE FROM file_user_rating
WHERE user_id = ?;`,
[ userId ],
cb
);
}
static persistMetaValue(fileId, name, value, transOrDb, cb) {
if(!_.isFunction(cb) && _.isFunction(transOrDb)) {
cb = transOrDb;