File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
templates/cli/lib/type-generation/languages Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class <%= toPascalCase(collection.name) %> {
78
78
(map['<%= attribute.key %> '] as List<dynamic >?)?.map((e) => <% - toPascalCase(attribute.key) %> .values.firstWhere((element) => element.name == e)).toList()<% if (!attribute.required) { %> ?? []<% } -%>
79
79
<% } else { -%>
80
80
<% 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 { -%>
82
82
<% - toPascalCase(attribute.key) %> .values.firstWhere((e) => e.name == map['<%= attribute.key %> '])<% } -%>
83
83
<% } -%>
84
84
<% } else { -%>
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ class Java extends LanguageMeta {
44
44
import java.util.*;
45
45
<% for (const attribute of collection.attributes) { -%>
46
46
<% if (attribute.type === ' relationship' ) { -%>
47
- import <% - toPascalCase(attribute.relatedCollection) %> ;
47
+ import io.appwrite.models. <% - toPascalCase(attribute.relatedCollection) %> ;
48
48
49
49
<% } -%>
50
50
<% } -%>
You can’t perform that action at this time.
0 commit comments