change nfo update paradigma
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user