Skip to content

Commit b00eaa7

Browse files
committed
fix a new issue with format of changefeeds, which caused loading tags to crash in admin crm
1 parent 1d86c92 commit b00eaa7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/packages/frontend/client/query.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ export class QueryClient {
5454
});
5555
// id for canceling this changefeed
5656
const id = uuid();
57-
const query = await changefeed.connect();
57+
const initval = await changefeed.connect();
58+
const query = {
59+
[Object.keys(opts.query)[0]]: initval,
60+
};
5861
this.changefeeds[id] = changefeed;
5962
cb(undefined, { query, id });
6063
changefeed.on("update", (change) => {

src/packages/sync/table/changefeed-nats.ts

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* License: MS-RSL – see LICENSE.md for details
44
*/
55

6+
// DEPRECATED!!! DELETE THIS!!!
7+
68
import { EventEmitter } from "events";
79
import type { State } from "./changefeed";
810
import { delay } from "awaiting";

0 commit comments

Comments
 (0)