Skip to content

Commit 1d12757

Browse files
committed
fix: remove readme storing logic
1 parent 878aacf commit 1d12757

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/routes/v1/store.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Hono } from 'hono';
22
import type { StorageAdapter } from '@/storage/index.js';
33
import manifestSchema from '@/schemas/manifest.js';
44
import path from 'node:path';
5-
import { z } from 'zod';
65
import * as JSZip from 'jszip';
76
import { prisma } from '@/db.js';
87
import { computeChecksum } from '@/utils/checksum.js';
@@ -317,17 +316,6 @@ app.post('/upload', async (c) => {
317316
}
318317
}
319318

320-
// Extract and store README
321-
let readmeKey: string | null = null;
322-
const readmeFile = zip.file('README.md');
323-
if (readmeFile) {
324-
const readmeBuffer = await readmeFile.async('nodebuffer');
325-
readmeKey = `extensions/${extensionKey}/README.md`;
326-
await storage.put(readmeKey, readmeBuffer, {
327-
contentType: 'text/markdown',
328-
});
329-
}
330-
331319
const extension = await prisma.extension.upsert({
332320
where: {
333321
authorId_name: {
@@ -344,7 +332,6 @@ app.post('/upload', async (c) => {
344332
checksum,
345333
iconLight: iconLightKey,
346334
iconDark: iconDarkKey,
347-
readmeKey,
348335
authorId: user.id,
349336
categories: {
350337
connect: categoryIds,
@@ -361,7 +348,6 @@ app.post('/upload', async (c) => {
361348
checksum,
362349
iconLight: iconLightKey,
363350
iconDark: iconDarkKey,
364-
readmeKey,
365351
categories: {
366352
set: categoryIds,
367353
},

0 commit comments

Comments
 (0)