Release v2.10.3
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m13s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 31s

This commit is contained in:
2026-08-29 01:56:45 +01:00
parent 30814f3f46
commit 3f4f57020a
60 changed files with 1075 additions and 523 deletions
+22 -2
View File
@@ -14,7 +14,27 @@ test('prunes old unbound onboarding devices without deleting completed bindings'
await pruneStaleOnboardingDevices(pool);
assert.match(queryText, /modified_at < \(CURRENT_TIMESTAMP - INTERVAL 1 MINUTE\)/);
assert.match(queryText, /WHERE screen_id IS NULL/);
assert.match(queryText, /screen_id IS NULL/);
assert.match(queryText, /modified_at < \(CURRENT_TIMESTAMP - INTERVAL 15 MINUTE\)/);
assert.match(queryText, /last_seen_at < \(CURRENT_TIMESTAMP - INTERVAL 24 HOUR\)/);
assert.doesNotMatch(queryText, /d_players\.identifier = d_onboarding_devices\.device_id/);
});
test('updates an onboarding device last-seen timestamp by device id', async () => {
let queryText = '';
let queryParams = null;
const pool = {
async query(sql, params) {
queryText = sql;
queryParams = params;
return [[]];
}
};
const { touchOnboardingDeviceLastSeen } = require('../src/db/common');
await touchOnboardingDeviceLastSeen(pool, ['device-123', 'client-123']);
assert.match(queryText, /SET last_seen_at = CURRENT_TIMESTAMP/);
assert.match(queryText, /WHERE device_id IN \(\?, \?\)/);
assert.deepEqual(queryParams, ['device-123', 'client-123']);
});