summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/CHANGELOG.md4
-rw-r--r--packages/astro/src/@types/astro.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 198ae6c79..6586a084d 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -117,7 +117,7 @@
export const server = {
like: defineAction({
input: z.object({ postId: z.string() }),
- handler: async ({ postId }, context) => {
+ handler: async ({ postId }) => {
// update likes in db
return likes;
@@ -130,7 +130,7 @@
body: z.string(),
}),
- handler: async ({ postId }, context) => {
+ handler: async ({ postId }) => {
// insert comments in db
return comment;
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index a6fc56bea..219fc49d8 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -1754,7 +1754,7 @@ export interface AstroUserConfig {
* export const server = {
* like: defineAction({
* input: z.object({ postId: z.string() }),
- * handler: async ({ postId }, context) => {
+ * handler: async ({ postId }) => {
* // update likes in db
*
* return likes;
@@ -1767,7 +1767,7 @@ export interface AstroUserConfig {
* author: z.string(),
* body: z.string(),
* }),
- * handler: async ({ postId }, context) => {
+ * handler: async ({ postId }) => {
* // insert comments in db
*
* return comment;