Skip to content

Commit

Permalink
fix: functions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertPechaCZ committed Oct 30, 2024
1 parent 73a9a12 commit d0caa03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/clients/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class FunctionsClient {

public get = async ({ name }: GetFleekFunctionArgs) => {
const response = await this.graphqlClient.query({
__name: 'GetFleekFunctionByName',
fleekFunctionByName: {
__args: {
where: {
Expand All @@ -87,6 +88,7 @@ export class FunctionsClient {

public list = async () => {
const response = await this.graphqlClient.query({
__name: 'GetFleekFunctions',
fleekFunctions: {
__args: {},
data: {
Expand All @@ -102,6 +104,7 @@ export class FunctionsClient {
functionId,
}: ListFleekFunctionArgs): Promise<FleekFunctionDeployment[]> => {
const response = await this.graphqlClient.query({
__name: 'GetFleekFunctionDeployments',
fleekFunctionDeployments: {
__args: {
where: {
Expand All @@ -119,6 +122,7 @@ export class FunctionsClient {

public create = async ({ name, siteId }: CreateFleekFunctionArgs) => {
const response = await this.graphqlClient.mutation({
__name: 'CreateFleekFunction',
createFleekFunction: {
__args: {
data: {
Expand All @@ -141,6 +145,7 @@ export class FunctionsClient {
assetsCid,
}: DeployFleekFunctionArgs): Promise<FleekFunctionDeployment> => {
const response = await this.graphqlClient.mutation({
__name: 'DeployFleekFunction',
triggerFleekFunctionDeployment: {
__args: {
where: {
Expand All @@ -158,6 +163,7 @@ export class FunctionsClient {

public delete = async ({ id }: DeleteFleekFunctionArgs) => {
const response = await this.graphqlClient.mutation({
__name: 'DeleteFleekFunction',
deleteFleekFunction: {
__args: {
where: {
Expand All @@ -178,6 +184,7 @@ export class FunctionsClient {
status,
}: UpdateFleekFunctionArgs) => {
const response = await this.graphqlClient.mutation({
__name: 'UpdateFleekFunction',
updateFleekFunction: {
__args: {
where: {
Expand Down

0 comments on commit d0caa03

Please sign in to comment.