Skip to content

Commit d7eadd8

Browse files
Update src/proxy/processors/push-action/getMissingData.ts
Co-authored-by: Fabio Vincenzi <[email protected]>
1 parent 0028743 commit d7eadd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proxy/processors/push-action/getMissingData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const exec = async (req: any, action: Action): Promise<Action> => {
4040
const git = simpleGit(path);
4141
const log = await git.log({ from: action.commitFrom, to: action.commitTo });
4242

43-
action.commitData = log.all.toReversed().map((entry, i, array) => {
43+
action.commitData = [...log.all].reverse().map((entry, i, array) => {
4444
const parent = i === 0 ? action.commitFrom : array[i - 1].hash;
4545
const timestamp = Math.floor(new Date(entry.date).getTime() / 1000).toString();
4646
return {

0 commit comments

Comments
 (0)