Skip to content

Commit

Permalink
feat(OY2-26203): Add OS Action Column
Browse files Browse the repository at this point in the history
  • Loading branch information
pkim-gswell committed Dec 11, 2023
1 parent 2bdb7e5 commit b43f491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/api/handlers/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
isAuthorized,
lookupUserAttributes,
} from "../libs/auth/user";
import { packageActionsForResult } from "./getPackageActions";
import { packageActionsForResult } from "shared-utils";
import { Action } from "shared-types";
import {
issueRai,
Expand Down Expand Up @@ -42,7 +42,7 @@ export const handler = async (event: APIGatewayEvent) => {
);

// Check that the package action is available
const actions: Action[] = packageActionsForResult(userAttr, result);
const actions: Action[] = packageActionsForResult(userAttr, result._source);
if (!actions.includes(actionType)) {
return response({
statusCode: 401,
Expand Down

0 comments on commit b43f491

Please sign in to comment.