This is the output from my code to get the deployments list
⠇ Collecting deployments total in function: taramedAccount (account)
✔ Fetched functions.
⠸ Fetching deployments...
{
total: 1,
deployments: [
{
$id: "65e9915721f4b516fc9d",
$createdAt: "2024-03-07T10:05:11.543+00:00",
$updatedAt: "2024-03-07T10:05:47.691+00:00",
type: "vcs",
resourceId: "657de74807e8c5a3d6b4",
resourceType: "functions",
entrypoint: "src/main.ts",
size: 3072245,
buildId: "65e9917ba734832d5f2d",
activate: true,
status: "ready",
buildLogs: "Preparing for build ...\nBuilding ...\nbun install v1.0.29 (a146856d)\n\n + bun-types@1.0.18\n + prettier@3.0.3\n + node-appwrite@11.1.0\n\n 12 packages installed [238.00ms]\nPacking build ...\nBuild finished.\n",
buildTime: 6,
...
Focus on this output:
$id: "65e9915721f4b516fc9d",
$createdAt: "2024-03-07T10:05:11.543+00:00",
$updatedAt: "2024-03-07T10:05:47.691+00:00",
type: "vcs",
resourceId: "657de74807e8c5a3d6b4",
resourceType: "functions",
entrypoint: "src/main.ts",
size: 3072245,
buildId: "65e9917ba734832d5f2d",
activate: true,
status: "ready",
As you can see the 65e9915721f4b516fc9d's status is ready but according on the console is active please observe the picture
My objective is I want to delete all deployments excepts the active statys
status
but I cant use the Query.notEqual("status", "active"), this gives me an error.
{
...
activate: true,
}
Unfortunately my friend I think that is not the solution for my problem
every deployment's active are true
Oh, I see - you need to get the active deployment ID from the Function, not from the Deployment
ohhh I seee
tnx @ideclon
[SOLVED] Issue on Status of Deployment in ServerSide
Recommended threads
- AppwriteException - Transaction with the...
I am using "node-appwrite" module and I have successfully created transaction id but when passing it to tablesDB.createRow function with some other required dat...
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.
- Weird Table Causes Console to break
I dont even know how this even happened looks like the $createdAt and , $id got switched? <@831428608895615056>