Skip to content

Commit 3a4b01b

Browse files
authored
Merge pull request #1169 from appwrite/fix-typing-node
fix: typing for upsertDocument method in node to fix build error
2 parents 0968928 + 19728be commit 3a4b01b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function getTypeName(array $parameter, array $method = []): string
5959
if ($method['method'] === 'post') {
6060
return "Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Omit<Document, keyof Models.Document>";
6161
}
62-
if ($method['method'] === 'patch') {
62+
if ($method['method'] === 'patch' || $method['method'] === 'put') {
6363
return "Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>";
6464
}
6565
break;

0 commit comments

Comments
 (0)