sqlQuery Conversion : Fix syntax errors+

add-archived-and-accountType-columns
Moe 2020-08-05 18:16:50 -07:00
parent c56fbc1d93
commit f29e77846c
1 changed files with 3 additions and 2 deletions

View File

@ -33,14 +33,15 @@ module.exports = function(s,config,lang){
var didOne = false
videos.forEach(function(video){
video.dir = s.getVideoDirectory(video) + s.formattedTime(video.time) + '.' + video.ext
var whereGroup
if(didOne){
const whereGroup = [
whereGroup = [
['or','mid','=',video.mid],
['time','=',video.time]
]
}else{
didOne = false
const whereGroup = [
whereGroup = [
['mid','=',video.mid],
['time','=',video.time]
]