fix(place-contrib): mark the independent writes and use TREK's OSM id form in the catch-up test

This commit is contained in:
Maurice
2026-11-02 14:11:27 +01:00
parent 247d5fc519
commit 97188c16d1
4 changed files with 4 additions and 1 deletions
@@ -57,6 +57,7 @@ export class PlaceContribJob implements OnApplicationBootstrap {
return this.running;
}
/** @txIndependent the catch-up step and the send run each commit their own writes; a failed step never holds back the send. */
private async runOnce(): Promise<void> {
this.again = false;
// A failed catch-up step never keeps what is queued from going out.
@@ -223,6 +223,7 @@ export class PlaceContribService {
});
}
/** @txIndependent the switches and the catch-up commit together before any withdrawal asks the service, which is network I/O. */
private async changeFields(
consent: PlaceContribConsent,
fields: PlaceContribFieldSwitches,
@@ -24,6 +24,7 @@ export class ServiceKeyJob implements OnApplicationBootstrap, OnApplicationShutd
private readonly registrar: CronRegistrarService,
) {}
/** @txIndependent a daily schedule and a first check, each on its own; the key service writes in its own background work. */
onApplicationBootstrap(): void {
if (!this.registrar.isEnabled()) return;
this.registrar.register('service-key-renewal', `${randomInt(60)} ${randomInt(24)} * * *`, () => this.keys.settle());
@@ -64,7 +64,7 @@ const ALL: PlaceContribFieldSwitches = {
image: true,
};
const GERS = 'gers:ceba0e62-172b-4343-bb3b-78b915a18383';
const OSM = 'node/4242';
const OSM = 'node:4242';
const ADMIN = 1;
const NOW = new Date('2026-11-02T12:00:00Z');