Skip to content

Commit aa12fc0

Browse files
catdevnullclaude
andcommitted
Format code with Prettier
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent fa11ebd commit aa12fc0

File tree

8 files changed

+175
-104
lines changed

8 files changed

+175
-104
lines changed

sitio/migrate-to-postgres.ts

Lines changed: 136 additions & 75 deletions
Large diffs are not rendered by default.

sitio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@
8585
"vitest": "^3.2.4"
8686
},
8787
"packageManager": "[email protected]+sha256.8472168c3e1fd0bff287e694b053fccbbf20579a3ff9526b6333beab8df65a8d"
88-
}
88+
}

sitio/src/app.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<!doctype html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
%sveltekit.head%
7+
<script
8+
async
9+
src="https://umami.nulo.lol/script.js"
10+
data-website-id="3728adc2-6131-4895-9b0c-98f3038d9126"
11+
></script>
12+
</head>
313

4-
<head>
5-
<meta charset="utf-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
%sveltekit.head%
8-
<script async src="https://umami.nulo.lol/script.js" data-website-id="3728adc2-6131-4895-9b0c-98f3038d9126"></script>
9-
</head>
10-
11-
<body data-sveltekit-preload-data="hover">
12-
<div style="display: contents">%sveltekit.body%</div>
13-
</body>
14-
15-
</html>
14+
<body data-sveltekit-preload-data="hover">
15+
<div style="display: contents">%sveltekit.body%</div>
16+
</body>
17+
</html>

sitio/src/lib/db/connectDb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export async function connectDb({
1515
idle_timeout: 20,
1616
connect_timeout: 10,
1717
});
18-
18+
1919
const db = drizzle(client, { schema });
2020
await migrate(db, { migrationsFolder: "drizzle" });
2121
return db;

sitio/src/routes/api/internal/healthcheck/+server.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ export async function GET() {
2525
const lastScrapWithRetweets = await db
2626
.select({
2727
finishedAt: scraps.finishedAt,
28-
count: sql`(select count(*) from ${retweets} where ${scraps.id} = ${retweets.scrapId})`.as('c'),
28+
count:
29+
sql`(select count(*) from ${retweets} where ${scraps.id} = ${retweets.scrapId})`.as(
30+
"c",
31+
),
2932
})
3033
.from(scraps)
3134
.orderBy(desc(scraps.finishedAt))
3235
.groupBy()
3336
.limit(1)
34-
.where(sql`(select count(*) from ${retweets} where ${scraps.id} = ${retweets.scrapId}) > 0`);
37+
.where(
38+
sql`(select count(*) from ${retweets} where ${scraps.id} = ${retweets.scrapId}) > 0`,
39+
);
3540
// const lastLikedTweet = await db.query.likedTweets.findFirst({
3641
// orderBy: desc(likedTweets.lastSeenAt),
3742
// where: likesCutoffSql,

sitio/src/routes/api/internal/scraper/scrap/server.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("Scraper API Real Database Tests", () => {
110110
await testDb
111111
.delete(schema.scraperTokens)
112112
.where(eq(schema.scraperTokens.token, validToken));
113-
113+
114114
// Insert test token (schema is already created by migrations)
115115
await testDb.insert(schema.scraperTokens).values({
116116
token: validToken,
@@ -130,7 +130,7 @@ describe("Scraper API Real Database Tests", () => {
130130
await testDb
131131
.delete(schema.scraperTokens)
132132
.where(eq(schema.scraperTokens.token, validToken));
133-
133+
134134
// Close database connection
135135
await client.end();
136136
});

sitio/src/routes/pages.smoke.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ import { load as todosLosTweetsLoad } from "./experimentos/todos-los-tweets/+pag
4242
import { load as promediosLoad } from "./promedios/[year]/[month]/+page.server.js";
4343

4444
// Mock SvelteKit load event
45-
function mockLoadEvent(params: Record<string, string> = {}, url: string = "http://localhost") {
45+
function mockLoadEvent(
46+
params: Record<string, string> = {},
47+
url: string = "http://localhost",
48+
) {
4649
return {
4750
params,
4851
url: new URL(url),
@@ -144,7 +147,7 @@ describe("Main Pages Smoke Tests", () => {
144147
it("should load without errors", async () => {
145148
const event = mockLoadEvent();
146149
const result = await chequearLoad(event);
147-
150+
148151
expect(result).toBeDefined();
149152
expect(typeof result).toBe("object");
150153
});
@@ -161,7 +164,7 @@ describe("Main Pages Smoke Tests", () => {
161164
it("should load without errors", async () => {
162165
const event = mockLoadEvent();
163166
const result = await todosLosTweetsLoad(event);
164-
167+
165168
expect(result).toBeDefined();
166169
expect(typeof result).toBe("object");
167170
});
@@ -200,4 +203,4 @@ describe("Main Pages Smoke Tests", () => {
200203
}
201204
});
202205
});
203-
});
206+
});

sitio/vitest.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { defineConfig } from 'vitest/config';
2-
import { sveltekit } from '@sveltejs/kit/vite';
1+
import { defineConfig } from "vitest/config";
2+
import { sveltekit } from "@sveltejs/kit/vite";
33

44
export default defineConfig({
5-
plugins: [sveltekit()],
6-
test: {
7-
environment: 'node',
8-
},
9-
});
5+
plugins: [sveltekit()],
6+
test: {
7+
environment: "node",
8+
},
9+
});

0 commit comments

Comments
 (0)