Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const createBucket = async(orgId, // String
orgName, //String
bucketName, //String
) => {
bucketAPI = new BucketsAPI(new InfluxDB({url: __config.influx_url, token: __defaultUser.token, timeout: 20000}));
await bucketAPI.postBuckets({body: {name: bucketName, orgID: orgId}});
};