chore(server): refactor activityStream invocations - batch #4 - commits

This commit is contained in:
Kristaps Fabians Geikins
2025-01-23 14:10:21 +02:00
parent 5d1a46d541
commit ac88c503e3
22 changed files with 484 additions and 481 deletions
@@ -473,19 +473,16 @@ const saveNewCommitFactory =
const sourceApplication = commit.sourceApplication || null
const totalChildrenCount = commit.totalChildrenCount
const newCommit = await deps.createCommitByBranchId(
{
streamId,
branchId: targetBranch.id,
objectId,
authorId: owner.id,
message,
sourceApplication,
totalChildrenCount,
parents: parents.length ? parents : null
},
{ notify: true }
)
const newCommit = await deps.createCommitByBranchId({
streamId,
branchId: targetBranch.id,
objectId,
authorId: owner.id,
message,
sourceApplication,
totalChildrenCount,
parents: parents.length ? parents : null
})
const id = newCommit.id
return id