fix(readme): fix readme

This commit is contained in:
Philipp Kunz 2021-11-08 16:52:13 +01:00
parent d789eec558
commit 63405fc577

View File

@ -36,7 +36,7 @@ This class provides scheduling of functions with a cron syntax
```typescript
import { CronManager } from '@pushrocks/smarrtime';
const cronManagerInstance = new CronManager();
cronManagerInstance.addConrjob('* * * * * *', async () => {
cronManagerInstance.addCronjob('* * * * * *', async () => {
console.log('hello'); // will log 'hello' to console once every second;
});
cronManagerInstance.start();