hunk.code_window:       return result;
       } finally {
         await releaseLock();
         Logger.log(`Lock ${resource} released for ${handler.name}`, LOG_CONTEXT);
       }
     }
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:       shouldLog && Logger.log(`Lock ${resource} released for ${handler.name}`, LOG_CONTEXT);
  
hunk.file_path: apps/api/src/app/shared/services/distributed-lock/distributed-lock.service.ts
hunk.type: replace
file: {
    "name": "@novu/webhook",
    "version": "0.11.0",
    "description": "",
    "author": "",
    "private": true,
    "license": "UNLICENSED",
    "scripts": {
      "prebuild": "rimraf dist",
      "build": "nest build",
      "docker:build": "pnpm --silent --workspace-root pnpm-context -- apps/webhook/Dockerfile | docker build --build-arg PACKAGE_PATH=apps/webhook - -t novu-webhook",
      "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
      "start": "nodemon",
      "start:dev": "nodemon",
      "start:test": "cross-env NODE_ENV=test TZ=UTC nodemon",
      "start:debug": "nest start --debug --watch",
      "start:prod": "node dist/main",
      "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
      "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' TZ=UTC NODE_ENV=test E2E_RUNNER=true mocha --timeout 10000 --require ts-node/register --exit --file e2e/setup.ts src/**/**/*.spec.ts",
      "test:e2e": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' TZ=UTC NODE_ENV=test E2E_RUNNER=true mocha --timeout 10000 --require ts-node/register --exit --file e2e/setup.ts e2e/**/*.e2e.ts src/**/*.e2e.ts"
    },
    "dependencies": {
      "@godaddy/terminus": "^4.3.1",
      "@nestjs/common": "^9.2.1",
      "@nestjs/core": "^9.2.1",
      "@nestjs/platform-express": "^9.2.1",
      "@nestjs/platform-socket.io": "^9.2.1",
      "@nestjs/swagger": "^6.1.4",
      "@nestjs/terminus": "^9.1.4",
      "@novu/application-generic": "^0.11.0",
      "@novu/dal": "^0.11.0",
      "@novu/shared": "^0.11.0",
      "@novu/stateless": "^0.11.0",
      "@novu/testing": "^0.11.0",
      "@sentry/node": "^6.3.3",
      "axios": "^1.3.3",
      "bull": "^4.4.0",
      "bullmq": "^3.5.8",
      "class-transformer": "^0.5.1",
      "class-validator": "^0.14.0",
      "dotenv": "^8.2.0",
      "envalid": "^7.1.0",
      "jsonwebtoken": "9.0.0",
      "lodash": "^4.17.15",
      "nest-raven": "^7.2.0",
      "reflect-metadata": "^0.1.13",
      "rimraf": "^3.0.2",
      "rxjs": "^7.5.5",
      "socket.io": "^4.5.4"
    },
    "devDependencies": {
      "@nestjs/cli": "^7.6.0",
      "@nestjs/schematics": "^9.0.4",
      "@nestjs/testing": "^9.2.1",
      "@types/chai": "^4.3.4",
      "@types/express": "^4.17.8",
      "@types/jest": "^27.0.2",
      "@types/mocha": "^8.0.1",
      "@types/node": "^14.14.6",
      "@types/sinon": "^9.0.0",
      "@types/socket.io": "^2.1.13",
      "@types/supertest": "^2.0.10",
      "chai": "^4.2.0",
      "cross-env": "^7.0.3",
      "jest": "^27.0.6",
      "mocha": "^8.1.1",
      "nodemon": "^2.0.7",
      "prettier": "^2.1.2",
      "sinon": "^9.2.4",
      "supertest": "^6.0.0",
      "ts-jest": "^27.0.7",
      "ts-loader": "~9.4.0",
      "ts-node": "~10.9.1",
      "tsconfig-paths": "^3.9.0",
      "typescript": "4.9.5"
    }
  }
  