Skip to content

Commit ad0882b

Browse files
committed
fix: more syntatic mistakes
1 parent 2403dc1 commit ad0882b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/cli/lib/type-generation/languages/dart.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class <%= toPascalCase(collection.name) %> {
7878
(map['<%= attribute.key %>'] as List<dynamic>?)?.map((e) => <%- toPascalCase(attribute.key) %>.values.firstWhere((element) => element.name == e)).toList()<% if (!attribute.required) { %> ?? []<% } -%>
7979
<% } else { -%>
8080
<% if (!attribute.required) { -%>
81-
map['<%= attribute.key %>'] != null ? <%- toPascalCase(attribute.key) %>.values.where((e) => e.name == map['<%= attribute.key %>']).firstOrNull : null<% } else { -%>
81+
map['<%= attribute.key %>'] != null ? <%- toPascalCase(attribute.key) %>.values.where((e) => e.name == map['<%= attribute.key %>']).firstOrNull() : null<% } else { -%>
8282
<%- toPascalCase(attribute.key) %>.values.firstWhere((e) => e.name == map['<%= attribute.key %>'])<% } -%>
8383
<% } -%>
8484
<% } else { -%>

templates/cli/lib/type-generation/languages/java.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Java extends LanguageMeta {
4444
import java.util.*;
4545
<% for (const attribute of collection.attributes) { -%>
4646
<% if (attribute.type === 'relationship') { -%>
47-
import <%- toPascalCase(attribute.relatedCollection) %>;
47+
import io.appwrite.models.<%- toPascalCase(attribute.relatedCollection) %>;
4848

4949
<% } -%>
5050
<% } -%>

0 commit comments

Comments
 (0)