Skip to content

Commit 434e7fb

Browse files
authored
Merge pull request #2327 from appwrite/update-repo
2 parents e73aa2d + 439be60 commit 434e7fb

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/utils/specs.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ function* iterateAllMethods(
183183
yield { method: OpenAPIV3.HttpMethods.GET, value: methods.get, url };
184184
}
185185
if (methods?.post?.tags?.includes(service)) {
186+
// Skip if additional methods are present in [x-appwrite].methods
186187
if (
187188
methods?.post &&
188189
(!('x-appwrite' in methods.post) ||
@@ -206,10 +207,12 @@ function* iterateAllMethods(
206207
url
207208
};
208209
}
210+
211+
// Check additional methods in [x-appwrite].methods
209212
if (
210213
methods?.post?.tags?.includes(service) &&
211-
typeof methods.post['x-appwrite'] === 'object' &&
212-
Array.isArray(methods.post['x-appwrite']?.methods)
214+
typeof (methods.post as AppwriteOperationObject)['x-appwrite'] === 'object' &&
215+
Array.isArray((methods.post as AppwriteOperationObject)['x-appwrite']?.methods)
213216
) {
214217
const appwritePost = methods.post as AppwriteOperationObject;
215218
for (const additionalMethod of appwritePost['x-appwrite'].methods!) {

src/routes/docs/references/[version]/[platform]/[service]/+page.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,11 @@
154154
if (title.startsWith('read') || title.startsWith('get') || title.startsWith('list'))
155155
return 2;
156156
if (title.startsWith('update')) return 3;
157-
if (title.startsWith('delete')) return 4;
158-
return 5; // Other operations
157+
if (title.startsWith('upsert')) return 4;
158+
if (title.startsWith('delete')) return 5;
159+
if (title.startsWith('increment')) return 6;
160+
if (title.startsWith('decrement')) return 7;
161+
return 8; // Other operations
159162
}
160163
161164
/**

0 commit comments

Comments
 (0)