Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Jan 9, 2024
1 parent 592bf9e commit 1484132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/UploadedPdfStatus.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
title={pdfUpload.name}
>
<button
class="-mr-1 block md:hidden shrink-0 opacity-70 group-hover:block"
class="-mr-1 block shrink-0 opacity-70 group-hover:block md:hidden"
on:click={() => dispatch("deletepdf")}><CarbonClose /></button
>
<CarbonDocumentBlank class="shrink-0" />
<p class="truncate hidden md:block">{pdfUpload.name}</p>
<p class="hidden truncate md:block">{pdfUpload.name}</p>
</div>
2 changes: 1 addition & 1 deletion src/lib/server/files/uploadFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function uploadImgFile(file: Blob, conv: Conversation): Promise<str
});
}

export async function deleteFile(filename: string){
export async function deleteFile(filename: string) {
// Step 1: Check if the file exists
const existingFile = await collections.files.findOne({ filename });

Expand Down

0 comments on commit 1484132

Please sign in to comment.