Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
// @flow
import { createReadQuery, db } from 'shared/db';
import type { DBThread } from 'shared/types';
export const getThreadById = createReadQuery((id: string) => ({
query: db.table('threads').get(id),
tags: (thread: ?DBThread) => (thread ? [thread.id] : []),
}));