use correct convex function and change how the edit html gets the file id

This commit is contained in:
2026-04-01 21:05:07 +02:00
parent 5bbc100d83
commit 65951a23ce
3 changed files with 17 additions and 14 deletions
+6 -2
View File
@@ -72,8 +72,12 @@ class ConvexDB(ConvexDbBase):
args={ 'file_id': file_id, 'user_id': user_id }
)
async def get_file_informations(self, file_id:str):
pass
async def get_file_informations(self, file_id:str, user_id:str):
data = await self.run_query(
name='files:getFileByIdAndUser',
args={ 'file_id': file_id, 'user_id': user_id }
)
return data
# File Access Quary Functions
async def add_file_access(self, file_id: str, ip_address:str, status:str, user_agent:str):