diff --git a/apps/web/src/routes/app.throw.tsx b/apps/web/src/routes/app.throw.tsx
deleted file mode 100644
index 4b9a0c653..000000000
--- a/apps/web/src/routes/app.throw.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { createFileRoute, useNavigate } from '@tanstack/react-router';
-import { z } from 'zod';
-import { useMount } from '../hooks/useMount';
-
-export const Route = createFileRoute('/app/throw')({
- validateSearch: z.object({
- iterations: z.number().optional(),
- }),
- component: RouteComponent,
- beforeLoad: ({ search }) => {
- return {
- iterations: search.iterations,
- };
- },
- loader: async ({ context }) => {
- return {
- iterations: context.iterations,
- };
- },
- head: ({ loaderData }) => {
- return {
- meta: [
- {
- title: `Throw ${loaderData?.iterations}`,
- },
- ],
- };
- },
-});
-
-function RouteComponent() {
- const navigate = useNavigate();
- const { iterations } = Route.useSearch();
-
- useMount(() => {
- setTimeout(() => {
- navigate({ to: '/app/throw2', replace: true, search: { iterations: (iterations ?? 0) + 1 } });
- }, 1000);
- });
-
- return
Hello "/app/throw"!
;
-}
diff --git a/apps/web/src/routes/app.throw2.tsx b/apps/web/src/routes/app.throw2.tsx
deleted file mode 100644
index 6614d75d5..000000000
--- a/apps/web/src/routes/app.throw2.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import { createFileRoute, useNavigate } from '@tanstack/react-router';
-import { z } from 'zod';
-import { useMount } from '@/hooks/useMount';
-
-const searchParamsSchema = z.object({
- iterations: z.number().optional(),
-});
-
-export const Route = createFileRoute('/app/throw2')({
- validateSearch: searchParamsSchema,
- component: RouteComponent,
- beforeLoad: ({ search }) => {
- return {
- iterations: search.iterations,
- };
- },
- loader: async ({ context }) => {
- return {
- iterations: context.iterations,
- };
- },
- head: ({ loaderData }) => {
- return {
- meta: [
- {
- title: `Throw ${loaderData?.iterations}`,
- },
- ],
- };
- },
-});
-
-function RouteComponent() {
- const navigate = useNavigate();
- const { iterations } = Route.useSearch();
- useMount(() => {
- setTimeout(() => {
- navigate({ to: '/app/throw', replace: true, search: { iterations: (iterations ?? 0) + 1 } });
- }, 1000);
- });
-
- return Hello "/app/throw2"!
;
-}
diff --git a/packages/database/scripts/seed.ts b/packages/database/scripts/seed.ts
index 92fad1821..2c86f9b09 100644
--- a/packages/database/scripts/seed.ts
+++ b/packages/database/scripts/seed.ts
@@ -42,9 +42,9 @@ async function upsertData(tx: any, tableName: string, table: any, data: any[]) {
try {
// Fix YAML content in datasets table by converting literal \n to actual newlines
if (tableName === 'datasets') {
- data = data.map(record => ({
+ data = data.map((record) => ({
...record,
- ymlFile: record.ymlFile ? record.ymlFile.replace(/\\n/g, '\n') : record.ymlFile
+ ymlFile: record.ymlFile ? record.ymlFile.replace(/\\n/g, '\n') : record.ymlFile,
}));
}
// For tables that should always use ON CONFLICT DO NOTHING instead of updating