Skip to content

Commit

Permalink
fix: update package lock
Browse files Browse the repository at this point in the history
  • Loading branch information
bondiano committed Oct 19, 2023
1 parent 78262df commit 3077378
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/__tests__/examples/task-status.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ const activate = t<TaskState, TaskEvent, ITaskContext>(
TaskState.Active,
{
async onEnter(this: ITask, context, tags: Array<ITag>) {
const _tags = await Promise.all(
this.tags = await Promise.all(
tags.map(async (tag) => {
const newTag = context.qr.manager.create(Tag, tag);
return await context.qr.manager.save(Tag, newTag);
}),
);

this.tags = _tags;
},
async onExit(this: ITask, context) {
await context.qr.manager.save(Task, this);
Expand Down

0 comments on commit 3077378

Please sign in to comment.