From 9dfd6aa77518b3a1e6bfd926a3b7719c32a8c97f Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 24 Oct 2022 23:19:33 +0300 Subject: use the new api --- src/models/Thread.ts | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/models') diff --git a/src/models/Thread.ts b/src/models/Thread.ts index c31404f..5960e11 100644 --- a/src/models/Thread.ts +++ b/src/models/Thread.ts @@ -1,19 +1,17 @@ export type Comment = { - id: string; - commentCreator: string; - commentText: string; - creationDate: number; - imageId: string; - fileType: string //image or video + id: string; + timestamp: number; + content: string; + image: string; + imagetype: string //image or video }; export type Thread = { - id: string; - threadName: string; - threadCreator: string; - threadText: string; - comments: Comment[]; - creationDate: number; - imageId: string; - fileType: string; //image or video + id: string; + timestamp: number; + title: string; + content: string; + comments: Comment[]; + image: string; + imagetype: string; //image or video }; -- cgit v1.2.3