Skip to content

Commit 3a515a2

Browse files
committed
Return results
Signed-off-by: Marcos Candeia <[email protected]>
1 parent 2148e80 commit 3a515a2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/realtime.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { applyReducer, type Operation } from "fast-json-patch";
22
import { BinaryIndexedTree } from "./crdt/bit.ts";
33
import { apply } from "./crdt/text.ts";
44
import { type Env } from "./index.ts";
5-
import { createRouter, Router, Routes } from "./router.ts";
5+
import { Router, Routes, createRouter } from "./router.ts";
66

77
export const getObjectFor = (volume: string, ctx: { env: Env }) => {
88
const object = volume.startsWith("ephemeral:")
@@ -446,9 +446,7 @@ export class Realtime implements DurableObject {
446446
return Response.json(
447447
{
448448
timestamp: this.timestamp,
449-
results: results.map((r) =>
450-
r.accepted ? { ...r, content: undefined } : r
451-
),
449+
results,
452450
} satisfies VolumePatchResponse,
453451
);
454452
},

0 commit comments

Comments
 (0)