Skip to content

Commit

Permalink
🚨 Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Apr 28, 2023
1 parent 3a63ab8 commit 640dc14
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
4 changes: 2 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
autoprefixer: {},
},
};
21 changes: 13 additions & 8 deletions src/routes/conversation/[id]/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,10 @@ async function parseGeneratedText(
return res;
}

export async function PATCH({request, locals, params}) {
const {title} = z.object({title: z.string().trim().min(1).max(100)}).parse(await request.json())
export async function PATCH({ request, locals, params }) {
const { title } = z
.object({ title: z.string().trim().min(1).max(100) })
.parse(await request.json());

const convId = new ObjectId(params.id);

Expand All @@ -180,13 +182,16 @@ export async function PATCH({request, locals, params}) {
throw error(404, "Conversation not found");
}

await collections.conversations.updateOne({
_id: convId,
}, {
$set: {
title,
await collections.conversations.updateOne(
{
_id: convId,
},
{
$set: {
title,
},
}
});
);

return new Response();
}
18 changes: 9 additions & 9 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
const defaultTheme = require('tailwindcss/defaultTheme');
const defaultTheme = require("tailwindcss/defaultTheme");

/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}'],
darkMode: "class",
content: ["./src/**/*.{html,js,svelte,ts}"],
theme: {
extend: {
// fontFamily: {
// sans: ['"Inter"', ...defaultTheme.fontFamily.sans]
// },
fontSize: {
smd: '0.94rem'
}
}
smd: "0.94rem",
},
},
},
plugins: [
require('tailwind-scrollbar')({ nocompatible: true }),
require('@tailwindcss/typography')
]
require("tailwind-scrollbar")({ nocompatible: true }),
require("@tailwindcss/typography"),
],
};

0 comments on commit 640dc14

Please sign in to comment.