Skip to content

Commit

Permalink
[fix] typescript template (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
neko1990 authored Apr 18, 2024
1 parent 6ac5543 commit 7f8e076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Luban.Typescript/Templates/typescript-json/schema.sbn
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func generate_resolve_field_ref
if (is_field_bean_need_resolve_ref field)
ret 'this.'+fieldName + '?.resolve(tables);'
else if (is_field_array_like_need_resolve_ref field)
ret 'for (let _e of ' + 'this.' + + fieldName + ') { _e?.resolve(tables); }'
ret 'for (let _e of ' + 'this.' + fieldName + ') { _e?.resolve(tables); }'
else if (is_field_map_need_resolve_ref field)
ret 'foreach (var [_, _e] of ' + 'this.' + fieldName ') { _e?.resolve(tables); }'
ret 'for (let [_, _e] of ' + 'this.' + fieldName + ') { _e?.resolve(tables); }'
else
ret ''
end
Expand Down

0 comments on commit 7f8e076

Please sign in to comment.