Skip to content

Commit

Permalink
fix: Fixed a bug that caused ModelUri system data to be incorrect.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Jul 5, 2023
1 parent f544a82 commit f435800
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/katana_model/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ packages:
path: "../katana"
relative: true
source: path
version: "2.2.2"
version: "2.3.1"
lints:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class FirestoreModelAdapter extends ModelAdapter {
} else if (type == (ModelUri).toString()) {
final fromUser = val.get(ModelUri.kSourceKey, "") ==
ModelFieldValueSource.user.name;
final value = val.get(ModelUri.kUriKey, 0);
final value = val.get(ModelUri.kUriKey, "");
final targetKey = "#$key";
res[targetKey] = {
kTypeFieldKey: (ModelUri).toString(),
Expand All @@ -393,7 +393,7 @@ class FirestoreModelAdapter extends ModelAdapter {
} else if (type == (ModelImageUri).toString()) {
final fromUser = val.get(ModelImageUri.kSourceKey, "") ==
ModelFieldValueSource.user.name;
final value = val.get(ModelImageUri.kUriKey, 0);
final value = val.get(ModelImageUri.kUriKey, "");
final targetKey = "#$key";
res[targetKey] = {
kTypeFieldKey: (ModelImageUri).toString(),
Expand All @@ -406,7 +406,7 @@ class FirestoreModelAdapter extends ModelAdapter {
} else if (type == (ModelVideoUri).toString()) {
final fromUser = val.get(ModelVideoUri.kSourceKey, "") ==
ModelFieldValueSource.user.name;
final value = val.get(ModelVideoUri.kUriKey, 0);
final value = val.get(ModelVideoUri.kUriKey, "");
final targetKey = "#$key";
res[targetKey] = {
kTypeFieldKey: (ModelVideoUri).toString(),
Expand Down

0 comments on commit f435800

Please sign in to comment.