mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-09-11 14:36:35 +03:00
Fix/prod (#425)
* 🐛 update db tables script * ✏️ fix users routes * 🐛 add '/' AGAIN in URLs
This commit is contained in:
parent
974bb9826d
commit
056a68d5ed
@ -39,7 +39,7 @@ async def get_user_endpoint(request: Request, current_user: User = Depends(get_c
|
||||
default_brain = get_default_user_brain(current_user)
|
||||
|
||||
if default_brain:
|
||||
defaul_brain_size = Brain(id=default_brain.id).size
|
||||
defaul_brain_size = Brain(id=default_brain['id']).size
|
||||
else:
|
||||
defaul_brain_size = 0
|
||||
|
||||
|
@ -19,7 +19,6 @@ const DocumentData = ({ documentName }: DocumentDataProps): JSX.Element => {
|
||||
const { axiosInstance } = useAxios();
|
||||
const { track } = useEventTracking();
|
||||
|
||||
|
||||
const [documents, setDocuments] = useState<DocumentDetails[]>([]);
|
||||
|
||||
if (!session) {
|
||||
@ -30,7 +29,7 @@ const DocumentData = ({ documentName }: DocumentDataProps): JSX.Element => {
|
||||
const fetchDocuments = async () => {
|
||||
void track("GET_DOCUMENT_DETAILS");
|
||||
const res = await axiosInstance.get<{ documents: DocumentDetails[] }>(
|
||||
`/explore/${documentName}`
|
||||
`/explore/${documentName}/`
|
||||
);
|
||||
setDocuments(res.data.documents);
|
||||
};
|
||||
|
@ -152,6 +152,7 @@ CREATE TABLE IF NOT EXISTS brains_users (
|
||||
CREATE TABLE IF NOT EXISTS brains_vectors (
|
||||
brain_id UUID,
|
||||
vector_id BIGINT,
|
||||
file_sha1 TEXT,
|
||||
PRIMARY KEY (brain_id, vector_id),
|
||||
FOREIGN KEY (vector_id) REFERENCES vectors (id),
|
||||
FOREIGN KEY (brain_id) REFERENCES brains (brain_id)
|
||||
|
Loading…
Reference in New Issue
Block a user