mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 13:36:16 +02:00
Initial
This commit is contained in:
parent
4d42eeb318
commit
e05e8a2e35
3 changed files with 18 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue