Skip to content

Commit

Permalink
Apply Prettier Formatting to Meet Requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ChyzhykTech committed Feb 10, 2024
1 parent 0e580bb commit 7b4d680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { IJournal } from "../models/journal";

export async function commit(...entries: Entry[]): Promise<IJournal[]> {
let journals: IJournal[] = [];
await mongoTransaction(async session => {
journals = await Promise.all(entries.map(entry => entry.commit({ session })));
await mongoTransaction(async (session) => {
journals = await Promise.all(entries.map((entry) => entry.commit({ session })));
});
return journals;
}

0 comments on commit 7b4d680

Please sign in to comment.