Skip to content

Commit 4472b1d

Browse files
committed
fix(#94): Update page using latest version in clean command
Modifies the clean content command to update pages using the latest version by chaining the version('latest') method before update. This ensures updates are always applied to the most recent version of the item.
1 parent d4bbb16 commit 4472b1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/clean/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
// try to update the page with the data
47-
$item->update($data, $lang);
47+
$item->version('latest')->update($data, $lang);
4848
}
4949
}
5050
};

0 commit comments

Comments
 (0)