I noted that the error handling in restrict-overwrite example seems unsuitable for production use:
|
console.log(`AQL query failed: ${x.message}`); |
On an occasion where the AQL query were to fail, the error is spuriously silenced, and code proceeds with return { status: UploadStatus.UPLOAD_PROCEED };
The expected behavior would to be fail safely, that is, the error should lead to upload being stopped.