Skip to content

Commit

Permalink
fix: getSnapshot in shareDB (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed May 20, 2024
1 parent 6ea342b commit 9b72b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/nestjs-backend/src/share-db/share-db.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ export class ShareDbAdapter extends ShareDb.DB {
callback: (err: unknown, data?: Snapshot) => void
) {
await this.cls.runWith(this.cls.get(), async () => {
this.cls.set('cookie', options.cookie);
this.cls.set('shareViewId', options.shareId);
this.cls.set('cookie', options.agentCustom.cookie);
this.cls.set('shareViewId', options.agentCustom.shareId);
this.getSnapshotBulk(collection, [id], projection, options, (err, data) => {
if (err) {
callback(err);
Expand Down

0 comments on commit 9b72b2a

Please sign in to comment.