Skip to content

Commit

Permalink
fix createAndExecuteOrRestartBulkExportJob param order
Browse files Browse the repository at this point in the history
  • Loading branch information
arafubeatbox committed Aug 16, 2024
1 parent 1454661 commit e33b2b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = (crowi: Crowi): Router => {
};

try {
await pageBulkExportService?.createAndExecuteOrRestartBulkExportJob(path, req.user, restartJob, activityParameters);
await pageBulkExportService?.createAndExecuteOrRestartBulkExportJob(path, req.user, activityParameters, restartJob);
return res.apiv3({}, 204);
}
catch (err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PageBulkExportService {
/**
* Create a new page bulk export job and execute it
*/
async createAndExecuteOrRestartBulkExportJob(basePagePath: string, currentUser, restartJob = false, activityParameters: ActivityParameters): Promise<void> {
async createAndExecuteOrRestartBulkExportJob(basePagePath: string, currentUser, activityParameters: ActivityParameters, restartJob = false): Promise<void> {
const basePage = await this.pageModel.findByPathAndViewer(basePagePath, currentUser, null, true);

if (basePage == null) {
Expand Down

0 comments on commit e33b2b6

Please sign in to comment.