1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

chore: I discovered more typing

This commit is contained in:
Jayvin Hernandez 2025-02-02 23:25:41 -08:00
parent 13867cd083
commit b527eafda6
No known key found for this signature in database
GPG key ID: 97C2E533F17AF0EB
4 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
import { ActionIcon, Button, Center, Group, SimpleGrid, Title } from '@mantine/core';
import { File } from '@prisma/client';
import type { File } from '@prisma/client';
import { IconArrowLeft, IconFile } from '@tabler/icons-react';
import FileComponent from 'components/File';
import MutedText from 'components/MutedText';

View file

@ -1,4 +1,4 @@
import { File, Url, User } from '@prisma/client';
import type { File, Url, User } from '@prisma/client';
import config from 'lib/config';
import { ConfigDiscordContent } from 'config/Config';
import Logger from 'lib/logger';

View file

@ -1,4 +1,4 @@
import { InvisibleFile, InvisibleUrl } from '@prisma/client';
import type { InvisibleFile, InvisibleUrl } from '@prisma/client';
import { hash, verify } from 'argon2';
import { randomBytes } from 'crypto';
import { readdir, stat } from 'fs/promises';

View file

@ -1,4 +1,4 @@
import { File } from '@prisma/client';
import type { File } from '@prisma/client';
import { ExifTool, Tags } from 'exiftool-vendored';
import { createWriteStream } from 'fs';
import { readFile, rm } from 'fs/promises';
@ -87,7 +87,7 @@ export async function removeGPSData(image: File): Promise<void> {
logger.debug(`reading file to upload to datasource: ${file} -> ${image.name}`);
const buffer = await readFile(file);
await datasource.save(image.name, buffer, { type: image.mimetype, size: buffer.byteLength });
await datasource.save(image.name, buffer, { type: image.mimetype });
logger.debug(`removing temp file: ${file}`);
await rm(file);