Changeset 1d1fdc9 in Klonkt for src/services/Scheduler.js
- Timestamp:
- 09/04/2026 12:17:49 PM (4 days ago)
- Branches:
- main
- Children:
- 6d7ea52
- Parents:
- 9946a68
- File:
-
- 1 edited
-
src/services/Scheduler.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/Scheduler.js
r9946a68 r1d1fdc9 8 8 */ 9 9 10 import db from '../config/database.js';10 import db, { NU_ISO } from '../config/database.js'; 11 11 import HtmlSanitizerService from './HtmlSanitizerService.js'; 12 12 import ActivityPubService from './ActivityPubService.js'; … … 22 22 if (!due.length) return 0; 23 23 const upd = db.prepare( 24 "UPDATE posts SET status = 'published', published_at = COALESCE(published_at, publish_at, CURRENT_TIMESTAMP) WHERE id = ?"24 `UPDATE posts SET status = 'published', published_at = COALESCE(published_at, publish_at, ${NU_ISO}) WHERE id = ?` 25 25 ); 26 26 const ftsDel = db.prepare('DELETE FROM posts_fts WHERE post_id = ?');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)