change nfo update paradigma

This commit is contained in:
Yevhen Odynets
2026-10-01 09:50:26 +03:00
parent a7f57a43a0
commit fcbbf4f298
+2 -2
View File
@@ -170,8 +170,8 @@ func parseSingleScnlog(db *sqlx.DB) ([]model.ExternalSources, error) {
const query = "SELECT id, type_id, title, meta, eXsource " +
"FROM theamok_mdb.external_sources " +
"WHERE type = 'prescene' AND created >= DATE_SUB(NOW(), INTERVAL 1 MONTH) AND meta IS NULL " +
"ORDER BY created DESC LIMIT 1"
"WHERE type = 'prescene' AND created >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND meta IS NULL " +
"ORDER BY created ASC LIMIT 1"
var src model.ScnlogSource
if err := db.Get(&src, query); err != nil {