Skip to content

Commit 3adf307

Browse files
committed
chore: regenerate sdk
1 parent c994de2 commit 3adf307

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup binfmt with QEMU
1515
run: |
1616
sudo apt update
17-
sudo apt install qemu binfmt-support qemu-user-static
17+
sudo apt install qemu-system binfmt-support qemu-user-static
1818
update-binfmts --display
1919
- name: Setup ldid
2020
run: |

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Client {
208208
globalConfig.setCurrentSession('');
209209
globalConfig.removeSession(current);
210210
}
211-
throw new AppwriteException(json.message, json.code, json.type, json);
211+
throw new AppwriteException(json.message, json.code, json.type, text);
212212
}
213213

214214
if (responseType === "arraybuffer") {

lib/commands/push.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,12 @@ const getObjectChanges = (remote, local, index, what) => {
450450
return changes;
451451
}
452452

453-
const createAttribute = async (databaseId, collectionId, attribute) => {
453+
const createAttribute = (databaseId, collectionId, attribute) => {
454454
switch (attribute.type) {
455455
case 'string':
456456
switch (attribute.format) {
457457
case 'email':
458-
return await databasesCreateEmailAttribute({
458+
return databasesCreateEmailAttribute({
459459
databaseId,
460460
collectionId,
461461
key: attribute.key,
@@ -465,7 +465,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
465465
parseOutput: false
466466
})
467467
case 'url':
468-
return await databasesCreateUrlAttribute({
468+
return databasesCreateUrlAttribute({
469469
databaseId,
470470
collectionId,
471471
key: attribute.key,
@@ -475,7 +475,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
475475
parseOutput: false
476476
})
477477
case 'ip':
478-
return await databasesCreateIpAttribute({
478+
return databasesCreateIpAttribute({
479479
databaseId,
480480
collectionId,
481481
key: attribute.key,
@@ -485,7 +485,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
485485
parseOutput: false
486486
})
487487
case 'enum':
488-
return await databasesCreateEnumAttribute({
488+
return databasesCreateEnumAttribute({
489489
databaseId,
490490
collectionId,
491491
key: attribute.key,
@@ -496,7 +496,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
496496
parseOutput: false
497497
})
498498
default:
499-
return await databasesCreateStringAttribute({
499+
return databasesCreateStringAttribute({
500500
databaseId,
501501
collectionId,
502502
key: attribute.key,
@@ -509,7 +509,7 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
509509

510510
}
511511
case 'integer':
512-
return await databasesCreateIntegerAttribute({
512+
return databasesCreateIntegerAttribute({
513513
databaseId,
514514
collectionId,
515515
key: attribute.key,
@@ -567,12 +567,12 @@ const createAttribute = async (databaseId, collectionId, attribute) => {
567567
}
568568
}
569569

570-
const updateAttribute = async (databaseId, collectionId, attribute) => {
570+
const updateAttribute = (databaseId, collectionId, attribute) => {
571571
switch (attribute.type) {
572572
case 'string':
573573
switch (attribute.format) {
574574
case 'email':
575-
return await databasesUpdateEmailAttribute({
575+
return databasesUpdateEmailAttribute({
576576
databaseId,
577577
collectionId,
578578
key: attribute.key,
@@ -582,7 +582,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
582582
parseOutput: false
583583
})
584584
case 'url':
585-
return await databasesUpdateUrlAttribute({
585+
return databasesUpdateUrlAttribute({
586586
databaseId,
587587
collectionId,
588588
key: attribute.key,
@@ -592,7 +592,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
592592
parseOutput: false
593593
})
594594
case 'ip':
595-
return await databasesUpdateIpAttribute({
595+
return databasesUpdateIpAttribute({
596596
databaseId,
597597
collectionId,
598598
key: attribute.key,
@@ -602,7 +602,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
602602
parseOutput: false
603603
})
604604
case 'enum':
605-
return await databasesUpdateEnumAttribute({
605+
return databasesUpdateEnumAttribute({
606606
databaseId,
607607
collectionId,
608608
key: attribute.key,
@@ -613,7 +613,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
613613
parseOutput: false
614614
})
615615
default:
616-
return await databasesUpdateStringAttribute({
616+
return databasesUpdateStringAttribute({
617617
databaseId,
618618
collectionId,
619619
key: attribute.key,
@@ -626,7 +626,7 @@ const updateAttribute = async (databaseId, collectionId, attribute) => {
626626

627627
}
628628
case 'integer':
629-
return await databasesUpdateIntegerAttribute({
629+
return databasesUpdateIntegerAttribute({
630630
databaseId,
631631
collectionId,
632632
key: attribute.key,
@@ -882,7 +882,7 @@ const createAttributes = async (attributes, collection) => {
882882
const result = await awaitPools.expectAttributes(
883883
collection['databaseId'],
884884
collection['$id'],
885-
collection.attributes.map(attribute => attribute.key)
885+
collection.attributes.filter(attribute => attribute.side !== 'child').map(attribute => attribute.key)
886886
);
887887

888888
if (!result) {

0 commit comments

Comments
 (0)