almanacGetAll(dbCtx) { // eslint-disable-line no-unused-vars
const _scope = _fileScope('almanacGetAll');
this.logger.debug(_scope, 'called');
almanacGetAll(dbCtx) { // eslint-disable-line no-unused-vars
const _scope = _fileScope('almanacGetAll');
this.logger.debug(_scope, 'called');
const epoch = common.dateToEpoch(date);
const result = this.statement.almanacUpsert.run({ event, epoch });
if (result.changes != 1) {
const epoch = common.dateToEpoch(date);
const result = this.statement.almanacUpsert.run({ event, epoch });
if (result.changes != 1) {
}
} catch (e) {
this.logger.error(_scope, 'failed', { error: e, event, date });
}
} catch (e) {
this.logger.error(_scope, 'failed', { error: e, event, date });
// Update the last cleanup time
const result = this.statement.almanacUpsert.run({ event: almanacEvent, epoch: nowEpoch });
if (result.changes != 1) {
// Update the last cleanup time
const result = this.statement.almanacUpsert.run({ event: almanacEvent, epoch: nowEpoch });
if (result.changes != 1) {
}
this.logger.debug(_scope, 'finished', { scopesRemoved, atLeastMsSinceLast });
}
this.logger.debug(_scope, 'finished', { scopesRemoved, atLeastMsSinceLast });
// Update the last cleanup time
const result = this.statement.almanacUpsert.run({ event: almanacEvent, epoch: nowEpoch });
if (result.changes != 1) {
// Update the last cleanup time
const result = this.statement.almanacUpsert.run({ event: almanacEvent, epoch: nowEpoch });
if (result.changes != 1) {
}
this.logger.debug(_scope, 'finished', { tokensRemoved, codeLifespanSeconds, atLeastMsSinceLast });
}
this.logger.debug(_scope, 'finished', { tokensRemoved, codeLifespanSeconds, atLeastMsSinceLast });
const epoch = common.dateToEpoch();
const almanacResult = this.statement.almanacUpsert.run({ event: almanacEvent, epoch });
if (almanacResult.changes != 1) {
const epoch = common.dateToEpoch();
const almanacResult = this.statement.almanacUpsert.run({ event: almanacEvent, epoch });
if (almanacResult.changes != 1) {