|
@@ -90,14 +90,11 @@ module.exports = (crowi) => {
|
|
|
const offset = +req.query.offset || 0;
|
|
const offset = +req.query.offset || 0;
|
|
|
const { isTrashPage } = require('@commons/util/path-utils');
|
|
const { isTrashPage } = require('@commons/util/path-utils');
|
|
|
|
|
|
|
|
- let includeTrashed;
|
|
|
|
|
|
|
+ let includeTrashed = false;
|
|
|
|
|
|
|
|
if (isTrashPage(path)) {
|
|
if (isTrashPage(path)) {
|
|
|
includeTrashed = true;
|
|
includeTrashed = true;
|
|
|
}
|
|
}
|
|
|
- else {
|
|
|
|
|
- includeTrashed = false;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
const queryOptions = {
|
|
const queryOptions = {
|
|
|
offset,
|
|
offset,
|