Skip to content

Commit 642461c

Browse files
committed
fix: missing param organization_id
1 parent d0d5b5a commit 642461c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class CoCreateServerSideRender {
66
this.renderedIgnoreEl = { INPUT: true, TEXTAREA: true, SELECT: true, LINK: true, IFRAME: true, "COCREATE-SELECT": true }
77
}
88

9-
async html(html) {
9+
async HTML(html, organization_id) {
1010

1111
let dep = [];
1212
let dbCache = new Map();
@@ -51,7 +51,8 @@ class CoCreateServerSideRender {
5151
collection,
5252
document: {
5353
_id
54-
}
54+
},
55+
organization_id
5556
});
5657
record = record.document[0]
5758
dbCache.set(cacheKey, record)
@@ -80,6 +81,9 @@ class CoCreateServerSideRender {
8081
return dom;
8182
}
8283
let result = (await render(html, 'root')).toString();
84+
dep = [];
85+
dbCache.clear();
86+
8387
return result;
8488
}
8589
}

0 commit comments

Comments
 (0)