Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
fix: fixes code sample in readme (fixes #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Jul 15, 2022
1 parent 84b07d2 commit 2514d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const run = async () => {
context: 'node.js' // 'node.js' or 'browser'
});

const importService = new ImportService({
const cleanService = new CleanService({
onDelete: item => {
// called when any content is deleted
console.log(`Deleted: ${item.title} | ${item.type}`);
Expand All @@ -207,7 +207,7 @@ const run = async () => {
const data = await zipService.extractZipAsync();

// restore into target project
await importService.importFromSourceAsync(data);
await cleanService.importFromSourceAsync(data);
};

run();
Expand Down

0 comments on commit 2514d55

Please sign in to comment.