This commit is contained in:
seb
2026-10-29 03:29:07 +01:00
parent 0fb5893a70
commit c7db2262b0
2 changed files with 3 additions and 4 deletions

View File

@@ -62,16 +62,15 @@ test('schema migrations & posterminal version 2', async (t) => {
assert.equal(list[0].enabled, 1);
assert.equal(list[0].clientversion, '2.1.0');
// patch update
// patch update (clientversion is not updated via upsert; existing value is preserved)
const updated = await store.posterminal.upsert(tenant.googleAuthId, {
id: terminalId,
sort: 10,
enabled: false,
clientversion: '2.2.0',
});
assert.equal(updated.sort, 10);
assert.equal(updated.enabled, 0);
assert.equal(updated.clientversion, '2.2.0');
assert.equal(updated.clientversion, '2.1.0');
// pair with clientversion
const paired = await store.posterminal.pair(terminalId, {