@@ -18,7 +18,7 @@ export class Databases {
18
18
* @throws {AppwriteException }
19
19
* @returns {Promise<Models.DocumentList<Document>> }
20
20
*/
21
- async listDocuments < Document extends Models . Document > ( databaseId : string , collectionId : string , queries ?: string [ ] ) : Promise < Models . DocumentList < Document > > {
21
+ listDocuments < Document extends Models . Document > ( databaseId : string , collectionId : string , queries ?: string [ ] ) : Promise < Models . DocumentList < Document > > {
22
22
if ( typeof databaseId === 'undefined' ) {
23
23
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
24
24
}
@@ -36,9 +36,6 @@ export class Databases {
36
36
'content-type' : 'application/json' ,
37
37
}
38
38
39
- payload [ 'project' ] = this . client . config . project ;
40
-
41
-
42
39
return this . client . call (
43
40
'get' ,
44
41
uri ,
@@ -57,7 +54,7 @@ export class Databases {
57
54
* @throws {AppwriteException }
58
55
* @returns {Promise<Document> }
59
56
*/
60
- async createDocument < Document extends Models . Document > ( databaseId : string , collectionId : string , documentId : string , data : Omit < Document , keyof Models . Document > , permissions ?: string [ ] ) : Promise < Document > {
57
+ createDocument < Document extends Models . Document > ( databaseId : string , collectionId : string , documentId : string , data : Omit < Document , keyof Models . Document > , permissions ?: string [ ] ) : Promise < Document > {
61
58
if ( typeof databaseId === 'undefined' ) {
62
59
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
63
60
}
@@ -87,9 +84,6 @@ export class Databases {
87
84
'content-type' : 'application/json' ,
88
85
}
89
86
90
- payload [ 'project' ] = this . client . config . project ;
91
-
92
-
93
87
return this . client . call (
94
88
'post' ,
95
89
uri ,
@@ -107,7 +101,7 @@ export class Databases {
107
101
* @throws {AppwriteException }
108
102
* @returns {Promise<Document> }
109
103
*/
110
- async getDocument < Document extends Models . Document > ( databaseId : string , collectionId : string , documentId : string , queries ?: string [ ] ) : Promise < Document > {
104
+ getDocument < Document extends Models . Document > ( databaseId : string , collectionId : string , documentId : string , queries ?: string [ ] ) : Promise < Document > {
111
105
if ( typeof databaseId === 'undefined' ) {
112
106
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
113
107
}
@@ -128,9 +122,6 @@ export class Databases {
128
122
'content-type' : 'application/json' ,
129
123
}
130
124
131
- payload [ 'project' ] = this . client . config . project ;
132
-
133
-
134
125
return this . client . call (
135
126
'get' ,
136
127
uri ,
@@ -149,7 +140,7 @@ export class Databases {
149
140
* @throws {AppwriteException }
150
141
* @returns {Promise<Document> }
151
142
*/
152
- async updateDocument < Document extends Models . Document > ( databaseId : string , collectionId : string , documentId : string , data ?: Partial < Omit < Document , keyof Models . Document > > , permissions ?: string [ ] ) : Promise < Document > {
143
+ updateDocument < Document extends Models . Document > ( databaseId : string , collectionId : string , documentId : string , data ?: Partial < Omit < Document , keyof Models . Document > > , permissions ?: string [ ] ) : Promise < Document > {
153
144
if ( typeof databaseId === 'undefined' ) {
154
145
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
155
146
}
@@ -173,9 +164,6 @@ export class Databases {
173
164
'content-type' : 'application/json' ,
174
165
}
175
166
176
- payload [ 'project' ] = this . client . config . project ;
177
-
178
-
179
167
return this . client . call (
180
168
'patch' ,
181
169
uri ,
@@ -192,7 +180,7 @@ export class Databases {
192
180
* @throws {AppwriteException }
193
181
* @returns {Promise<{}> }
194
182
*/
195
- async deleteDocument ( databaseId : string , collectionId : string , documentId : string ) : Promise < { } > {
183
+ deleteDocument ( databaseId : string , collectionId : string , documentId : string ) : Promise < { } > {
196
184
if ( typeof databaseId === 'undefined' ) {
197
185
throw new AppwriteException ( 'Missing required parameter: "databaseId"' ) ;
198
186
}
@@ -210,9 +198,6 @@ export class Databases {
210
198
'content-type' : 'application/json' ,
211
199
}
212
200
213
- payload [ 'project' ] = this . client . config . project ;
214
-
215
-
216
201
return this . client . call (
217
202
'delete' ,
218
203
uri ,
0 commit comments