Skip to content

Commit 8de89bb

Browse files
committed
docs: return json from the controller examples.
1 parent 79f49c0 commit 8de89bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ defmodule MutationController do
189189
)
190190
|> Writer.apply(transaction, Repo, format: Format.TanstackDB)
191191

192-
render(conn, :mutations, txid: txid)
192+
json(conn, txid: txid)
193193
end
194194
end
195195
```

lib/phoenix/sync/writer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ defmodule Phoenix.Sync.Writer do
5151
format: Format.TanstackDB
5252
)
5353
54-
render(conn, :mutations, txid: txid)
54+
json(conn, txid: txid)
5555
end
5656
end
5757

0 commit comments

Comments
 (0)