Skip to content

Commit 9bbb646

Browse files
committed
revert functions only changes
1 parent e222d43 commit 9bbb646

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

src/modules/functions.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { AxiosInstance } from "axios";
2-
import { extractSnapshotIdFromHost } from "../utils/extract-snapshot-id-from-host.js";
32

43
/**
54
* Creates the functions module for the Base44 SDK
@@ -42,18 +41,10 @@ export function createFunctionsModule(axios: AxiosInstance, appId: string) {
4241
contentType = "application/json";
4342
}
4443

45-
// Extract functions version from the current URL host
46-
const functionsVersion = extractSnapshotIdFromHost();
47-
4844
return axios.post(
4945
`/apps/${appId}/functions/${functionName}`,
5046
formData || data,
51-
{
52-
headers: {
53-
"Content-Type": contentType,
54-
"Base44-Functions-Version": functionsVersion
55-
}
56-
}
47+
{ headers: { "Content-Type": contentType } }
5748
);
5849
},
5950
};

src/utils/extract-snapshot-id-from-host.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)