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:
parent
13867cd083
commit
b527eafda6
4 changed files with 5 additions and 5 deletions
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue