🎨 reformat

This commit is contained in:
Flam3rboy
2021-10-15 00:03:35 +02:00
parent fb3f957f30
commit bc85d6ff86
6 changed files with 7 additions and 13 deletions
-5
View File
@@ -32,13 +32,8 @@ export class ReadState extends BaseClass {
user: User;
@Column({ nullable: true })
@RelationId((read_state: ReadState) => read_state.last_message)
last_message_id: string;
@JoinColumn({ name: "last_message_id" })
@ManyToOne(() => Message, { nullable: true })
last_message?: Message;
@Column({ nullable: true })
last_pin_timestamp?: Date;
+1
View File
@@ -18,6 +18,7 @@ export * from "./Relationship";
export * from "./Role";
export * from "./Session";
export * from "./Sticker";
export * from "./StickerPack";
export * from "./Team";
export * from "./TeamMember";
export * from "./Template";
+3 -1
View File
@@ -4,7 +4,9 @@ import fetch from "node-fetch";
import { Config } from "./Config";
import multer from "multer";
export async function uploadFile(path: string, file: Express.Multer.File) {
export async function uploadFile(path: string, file?: Express.Multer.File) {
if (!file?.buffer) throw new HTTPError("Missing file in body");
const form = new FormData();
form.append("file", file.buffer, {
contentType: file.mimetype,