...
Now that we have a SyncQueue set up and a handler function in place to propagate any Customer updates, we can update our CommitUpdate to actually use the Queue:
Codeblock | ||
---|---|---|
| ||
import { queue } from "./queue.mjs";
[...]
/**
* @param {Entry} e
*/
postCommit(e) {
if (e.get('entrytype') == 'customer') {
queue.push({ oid: e.oid });
}
}
/**
* @param {Entry} e
*/
preRemove(e) {
if (e.get('entrytype') == 'customer') {
queue.push({ oid: e.oid });
}
}
[...] |
...