update details check for archived to use column

archive-and-sub-as-columns
Moe 2022-02-16 20:11:08 -08:00
parent fa0796d41e
commit dc4a0afa9e
1 changed files with 4 additions and 4 deletions

View File

@ -227,7 +227,7 @@ module.exports = (s,config,lang) => {
where: [
['ke','=',groupKey],
['status','!=','0'],
['details','NOT LIKE',`%"archived":"1"%`],
['archive','=',`0`],
['details','LIKE',`%"dir":"${storage.value}"%`],
],
orderBy: ['time','asc'],
@ -272,7 +272,7 @@ module.exports = (s,config,lang) => {
where: [
['ke','=',groupKey],
['status','!=','0'],
['details','NOT LIKE',`%"archived":"1"%`],
['archive','=',`0`],
['details','NOT LIKE',`%"dir"%`],
],
orderBy: ['time','asc'],
@ -301,7 +301,7 @@ module.exports = (s,config,lang) => {
table: "Timelapse Frames",
where: [
['ke','=',groupKey],
['details','NOT LIKE',`%"archived":"1"%`],
['archive','=',`0`],
],
orderBy: ['time','asc'],
limit: 3
@ -410,7 +410,7 @@ module.exports = (s,config,lang) => {
table: "Cloud Timelapse Frames",
where: [
['ke','=',groupKey],
['details','NOT LIKE',`%"archived":"1"%`],
['archive','=',`0`],
],
orderBy: ['time','asc'],
limit: 3