mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Add linting and unused cleanup
This commit is contained in:
@@ -10,12 +10,24 @@ var toShowConfig = {
|
||||
startTime: 1,
|
||||
userpass: 1,
|
||||
vote: 1,
|
||||
toggleChat: { $ifNull: ["$toggleChat", true] },
|
||||
strictSkip: { $ifNull: ["$strictSkip", false] },
|
||||
strictSkipNumber: { $ifNull: ["$strictSkipNumber", 10] },
|
||||
description: { $ifNull: ["$description", ""] },
|
||||
thumbnail: { $ifNull: ["$thumbnail", ""] },
|
||||
rules: { $ifNull: ["$rules", ""] },
|
||||
toggleChat: {
|
||||
$ifNull: ["$toggleChat", true]
|
||||
},
|
||||
strictSkip: {
|
||||
$ifNull: ["$strictSkip", false]
|
||||
},
|
||||
strictSkipNumber: {
|
||||
$ifNull: ["$strictSkipNumber", 10]
|
||||
},
|
||||
description: {
|
||||
$ifNull: ["$description", ""]
|
||||
},
|
||||
thumbnail: {
|
||||
$ifNull: ["$thumbnail", ""]
|
||||
},
|
||||
rules: {
|
||||
$ifNull: ["$rules", ""]
|
||||
},
|
||||
_id: 0
|
||||
};
|
||||
|
||||
@@ -30,8 +42,12 @@ var project_object = {
|
||||
duration: 1,
|
||||
end: 1,
|
||||
type: 1,
|
||||
added_by: { $ifNull: ["$added_by", "Anonymous"] },
|
||||
source: { $ifNull: ["$source", "youtube"] },
|
||||
added_by: {
|
||||
$ifNull: ["$added_by", "Anonymous"]
|
||||
},
|
||||
source: {
|
||||
$ifNull: ["$source", "youtube"]
|
||||
},
|
||||
thumbnail: {
|
||||
$ifNull: [
|
||||
"$thumbnail",
|
||||
@@ -40,7 +56,9 @@ var project_object = {
|
||||
}
|
||||
]
|
||||
},
|
||||
tags: { $ifNull: ["$tags", []] }
|
||||
tags: {
|
||||
$ifNull: ["$tags", []]
|
||||
}
|
||||
};
|
||||
|
||||
var toShowChannel = {
|
||||
@@ -62,4 +80,4 @@ var toShowChannel = {
|
||||
|
||||
module.exports.project_object = project_object;
|
||||
module.exports.toShowConfig = toShowConfig;
|
||||
module.exports.toShowChannel = toShowChannel;
|
||||
module.exports.toShowChannel = toShowChannel;
|
||||
Reference in New Issue
Block a user