Skip to content

Commit cd14870

Browse files
authored
Merge pull request #2 from appwrite/chore-rename-attribute
CHore: Rename endpoint param
2 parents 11db64c + 5325d30 commit cd14870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const defaultContext = {
3535

3636
const screenshotSchema = z.object({
3737
url: z.string().url(),
38-
color: z.enum(["light", "dark"]).default("light"),
38+
theme: z.enum(["light", "dark"]).default("light"),
3939
headers: z.record(z.string(), z.any()),
4040
});
4141
router.post(
@@ -44,7 +44,7 @@ router.post(
4444
const body = await readValidatedBody(event, screenshotSchema.parse);
4545
const context = await browser.newContext({
4646
...defaultContext,
47-
colorScheme: body.color,
47+
colorScheme: body.theme,
4848
extraHTTPHeaders: body.headers,
4949
});
5050
const page = await context.newPage();

0 commit comments

Comments
 (0)