appwrite / sdk-for-dart

[READ-ONLY] Official Appwrite Dart SDK 💙
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
113 stars 17 forks source link

Update is returning Collection instead of Database #23

Closed pixeluvw closed 2 years ago

pixeluvw commented 2 years ago

👟 Reproduction steps

Database.update();

👍 Expected behavior

It should return models.Database.fromMap(res.data);

👎 Actual Behavior

But it returns a collection Screenshot from 2022-07-28 18-27-21

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

no

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

lohanidamodar commented 2 years ago

@stnguyen90 This should be fixed with latest update, please update accordingly.