felanios / murlock

MurLock: A distributed locking solution for NestJS, providing a decorator for critical sections with Redis-based synchronization. Ideal for microservices and scalable applications.
https://www.npmjs.com/package/murlock
MIT License
73 stars 3 forks source link

TypeError: murlock_1.MurLockService.unlock is not a function #13

Closed ahtinurme closed 1 year ago

ahtinurme commented 1 year ago

When using the service in NestJS:

import { MurLockService } from 'murlock';
...
await MurLockService.lock('function1');

I get this:

TypeError: murlock_1.MurLockService.unlock is not a function

version 1.2.1

felanios commented 1 year ago

@ahtinurme Hi, directly usage of MurLockService and documentation for that not clear I agree. I'll make a improvement for that, fyi.