mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
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
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:
parent
c44a5ecc89
commit
5a7635cdf7
|
@ -88,9 +88,9 @@ export function updateCookieValues(cookie, values) {
|
||||||
changed = cookie.set(key, value) || changed;
|
changed = cookie.set(key, value) || changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed) {
|
if (changed && cookie.meta) {
|
||||||
dirty = true;
|
dirty = true;
|
||||||
if (isCluster && cookie.meta) {
|
if (isCluster) {
|
||||||
const message = { cookieUpdate: { ...cookie.meta, cookie } };
|
const message = { cookieUpdate: { ...cookie.meta, cookie } };
|
||||||
cluster.send(message);
|
cluster.send(message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue