remove unused imports
This commit is contained in:
+11
-2
@@ -1,6 +1,7 @@
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import _ from "lodash";
|
||||
import { hashAPIPath } from ".";
|
||||
import { da } from "date-fns/locale";
|
||||
const {
|
||||
ContainerClient,
|
||||
BlockBlobClient,
|
||||
@@ -143,7 +144,14 @@ export const createContainer = async (containerName) => {
|
||||
|
||||
const blobServiceClient = new BlobServiceClient(`${STORAGE_PATH}`, creds);
|
||||
|
||||
const createContainerResponse = await containerClient.createIfNotExists();
|
||||
const createContainerResponse = await containerClient
|
||||
.createIfNotExists()
|
||||
.then((data) => {
|
||||
return data;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("has error", err);
|
||||
});
|
||||
|
||||
//console.log(
|
||||
// "\n//////////////////\n container name :",
|
||||
@@ -151,7 +159,8 @@ export const createContainer = async (containerName) => {
|
||||
// "\n//////////////////\n"
|
||||
// );
|
||||
|
||||
return containerName;
|
||||
console.log(createContainerResponse);
|
||||
return createContainerResponse;
|
||||
};
|
||||
|
||||
export const getContainers = async () => {
|
||||
|
||||
Reference in New Issue
Block a user