Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar committed Jan 28, 2025
1 parent 5b729ee commit e4c2547
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion apps/chat/src/pages/api/listing/[...listing].ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
}

if (isFile) {
return res.status(200).send(await response.json());
return res.status(200).send((await response.json()) as BackendFile);
}

const json = (await response.json()) as
Expand Down
3 changes: 0 additions & 3 deletions apps/chat/src/utils/app/data/file-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ export class FileService {
}

public static getFileInfo(fileId?: string): Observable<DialFile | undefined> {
const filter = BackendDataNodeType.ITEM;

const query = new URLSearchParams({
filter,
isFile: 'true',
});
const resultQuery = query.toString();
Expand Down

0 comments on commit e4c2547

Please sign in to comment.