api/cookie: write cookies only if from-file cookie was changed
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run
Run service tests / test service functionality (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled

This commit is contained in:
jj 2024-11-02 18:48:26 +00:00
parent c44a5ecc89
commit 5a7635cdf7
No known key found for this signature in database

View file

@ -88,9 +88,9 @@ export function updateCookieValues(cookie, values) {
changed = cookie.set(key, value) || changed;
}
if (changed) {
if (changed && cookie.meta) {
dirty = true;
if (isCluster && cookie.meta) {
if (isCluster) {
const message = { cookieUpdate: { ...cookie.meta, cookie } };
cluster.send(message);
}