Skip to content

Commit

Permalink
Clean preview branch after merge with staging
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoworko committed Oct 28, 2024
1 parent eee70e9 commit d6eb659
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ export const useActivitiesSearch = ({ activities, handleScrollToItem, handleUpda

const foundActivities: UIActivity[] = [];

for (const activity of activities) {
const fullSearchAllowedFields: NestedKeyOf<Activity>[] = [
"date",
"user",
"comment.content.value",
"activities.displayableName",
"overrideDisplayableName",
"additionalFields",
];
const fullSearchAllowedFields: NestedKeyOf<Activity>[] = [
"date",
"user",
"comment.content.value",
"activities.displayableName",
"overrideDisplayableName",
"additionalFields",
];

for (const activity of activities) {
if (activity.uiType !== "item") {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,6 @@ class ScenarioActivityApiHttpService(
}
}

expose {
endpoints.deleteAttachmentEndpoint
.serverSecurityLogic(authorizeKnownUser[ScenarioActivityError])
.serverLogicEitherT { implicit loggedUser => request: DeleteAttachmentRequest =>
for {
scenarioId <- getScenarioIdByName(request.scenarioName)
_ <- isAuthorized(scenarioId, Permission.Write)
_ <- markAttachmentAsDeleted(request, scenarioId)
} yield ()
}
}

expose {
endpoints.downloadAttachmentEndpoint
.serverSecurityLogic(authorizeKnownUser[ScenarioActivityError])
Expand Down

0 comments on commit d6eb659

Please sign in to comment.