use correct convex function and change how the edit html gets the file id
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user