remove unused imports

This commit is contained in:
2024-06-19 06:32:38 +01:00
parent e4a1903b48
commit b0e2bb6e14
263 changed files with 1458 additions and 2693 deletions
+11 -2
View File
@@ -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 () => {