sqlQuery Conversion : Fix syntax errors+
parent
c56fbc1d93
commit
f29e77846c
|
@ -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]
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue