hamedpro / freeflow-core

🩵⚡️next generation of decentralised collaboration
3 stars 1 forks source link

there is an extra check in restful API #201

Open hamedpro opened 1 year ago

hamedpro commented 1 year ago

when a new unit is created there is not any meta for it until its creator submits one. but files are not like that. when you upload one, system saves the file into disk and creates its meta both at once. so in /files/:file_id (GET) there is not any need to check whether its meta exists or not. even if thats only a ts type guard just throw an internal error in case that doesn't exist