Skip to content

Commit

Permalink
Refactor dynamic extensions API to include extension IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
saoc90 committed Sep 18, 2024
1 parent 3cf446e commit 963482a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ServerActionResponse } from "@/features/common/server-action-response";

import { userHashedId } from "@/features/auth-page/helpers";
import {
FindAllExtensionForCurrentUser,
FindAllExtensionForCurrentUserAndIds,
FindSecureHeaderValue,
} from "@/features/extensions-page/extension-services/extension-service";
import {
Expand All @@ -17,7 +17,7 @@ import { ToolsInterface } from "../models";
export const GetDynamicExtensions = async (props: {
extensionIds: string[];
}): Promise<ServerActionResponse<Array<any>>> => {
const extensionResponse = await FindAllExtensionForCurrentUser();
const extensionResponse = await FindAllExtensionForCurrentUserAndIds(props.extensionIds);

if (extensionResponse.status === "OK") {
const extensionToReturn = extensionResponse.response.filter((e) =>
Expand Down

0 comments on commit 963482a

Please sign in to comment.