Changeset 834bcc3 in Klonkt for src/services/Scheduler.js


Ignore:
Timestamp:
06/23/2026 06:14:27 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
d774679
Parents:
bb42dfb
Message:

i18n: translate Dutch code comments to English across src/

Comments in routes/services/views/config/middleware/assets translated to
English for the public repo. A few dev-facing throw/console message strings
were Englished too. No user-facing UI strings or i18n dictionary values changed
(src/services/i18n.js untouched). Logic unchanged.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/Scheduler.js

    rbb42dfb r834bcc3  
    11/**
    2  * Scheduler — release-planning (premium #3).
     2 * Scheduler — release planning (premium #3).
    33 *
    4  * Geplande posts hebben status 'scheduled' + publish_at (toekomst). Een lichte
    5  * timer zet ze op 'published' zodra publish_at bereikt is. Zo hoeven de publieke
    6  * queries (status='published') NIET aangepast te worden — een geplande post is
    7  * gewoon nog niet 'published' en dus nergens publiek zichtbaar tot het moment.
     4 * Scheduled posts have status 'scheduled' + publish_at (future). A lightweight
     5 * timer flips them to 'published' once publish_at is reached. This means public
     6 * queries (status='published') need NO changes — a scheduled post simply isn't
     7 * 'published' yet and therefore invisible until that moment.
    88 */
    99
     
    2525    for (const p of due) {
    2626      upd.run(p.id);
    27       try { fts.run(HtmlSanitizerService.toPlainText(p.content || ''), p.title || '', p.username || '', p.id); } catch { /* FTS niet-fataal */ }
     27      try { fts.run(HtmlSanitizerService.toPlainText(p.content || ''), p.title || '', p.username || '', p.id); } catch { /* FTS failure is non-fatal */ }
    2828    }
    2929    return due.length;
     
    3333let _timer = null;
    3434export function startScheduler() {
    35   flipScheduledPosts();                 // direct bij boot
     35  flipScheduledPosts();                 // run immediately on boot
    3636  if (_timer) return;
    37   _timer = setInterval(flipScheduledPosts, 60 * 1000); // elke minuut
     37  _timer = setInterval(flipScheduledPosts, 60 * 1000); // every minute
    3838  if (_timer.unref) _timer.unref();
    3939}
Note: See TracChangeset for help on using the changeset viewer.