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
62 stars 1 forks source link

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

Closed ahtinurme closed 9 months ago

ahtinurme commented 10 months 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 9 months ago

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