File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { Hono } from 'hono';
22import type { StorageAdapter } from '@/storage/index.js' ;
33import manifestSchema from '@/schemas/manifest.js' ;
44import path from 'node:path' ;
5- import { z } from 'zod' ;
65import * as JSZip from 'jszip' ;
76import { prisma } from '@/db.js' ;
87import { 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 } ,
You can’t perform that action at this time.
0 commit comments