nooschain / buckets/access-control / assertBucketExists
Function: assertBucketExists()
assertBucketExists(
database,bucketId):Promise<void>
Defined in: buckets/access-control.ts:32
Confirms that a bucket exists before an access-rule or bucket-key operation references it.
Missing buckets fail with BUCKET_NOT_FOUND so transaction execution and API handlers produce the same domain error.
Parameters
database
bucketId
string
Returns
Promise<void>