Skip to content

Commit

Permalink
return includePermissionsInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey-weber committed Nov 16, 2023
1 parent 217116c commit 51e0bda
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/db/models/favorite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Favorite extends Model {
{ctx},
{
workbookIds: workbookEntries.map((entry) => entry.workbookId) as string[],
includePermissionsInfo: true,
includePermissionsInfo,
},
);

Expand Down
2 changes: 1 addition & 1 deletion src/db/models/navigation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class Navigation extends Model {
{ctx},
{
workbookIds: workbookEntries.map((entry) => entry.workbookId) as string[],
includePermissionsInfo: true,
includePermissionsInfo,
},
);

Expand Down
2 changes: 1 addition & 1 deletion src/services/entry/actions/create-in-workbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export async function createEntryInWorkbook(
const createdEntry = await transaction(Entry.primary, async (trx) => {
const workbook = await getWorkbook(
{ctx, trx, skipCheckPermissions: isPrivateRoute},
{workbookId, includePermissionsInfo: true},
{workbookId, includePermissionsInfo},
);

if (accessServiceEnabled && !isPrivateRoute) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/entry/actions/get-entry-relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function getEntryRelations(ctx: CTX, params: GetEntryRelationsData)
ctx,
trx: Entry.replica,
},
{workbookId: entry.workbookId, includePermissionsInfo: true},
{workbookId: entry.workbookId, includePermissionsInfo},
);

if (includePermissionsInfo) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/new/entry/get-entry-by-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const getEntryByKey = async (
if (!isPrivateRoute) {
const workbook = await getWorkbook(
{ctx, trx},
{workbookId: joinedEntryRevision.workbookId, includePermissionsInfo: true},
{workbookId: joinedEntryRevision.workbookId, includePermissionsInfo},
);

if (includePermissionsInfo) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/new/entry/get-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const getEntry = async (
{ctx, trx},
{
workbookId: joinedEntryRevisionFavorite.workbookId,
includePermissionsInfo: true,
includePermissionsInfo,
},
);

Expand Down
2 changes: 1 addition & 1 deletion src/services/new/workbook/get-workbook-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const getWorkbookContent = async (
{ctx, trx, skipValidation: true, skipCheckPermissions},
{
workbookId,
includePermissionsInfo: true,
includePermissionsInfo,
},
);

Expand Down

0 comments on commit 51e0bda

Please sign in to comment.