loopbackio / loopback-next

LoopBack makes it easy to build modern API applications that require complex integrations.
https://loopback.io
Other
4.96k stars 1.07k forks source link

fix: remove duplicate targetModelClassName import in has-one relation… #10627

Closed aaqilniz closed 3 months ago

aaqilniz commented 3 months ago

One of my PR introduced a bug in relation generation (Here is the commit). Generating a hasOne relation resulted in a duplicate import of targetModelClassName in the has-one relation template file.

This PR fixes that by removing the duplication.

Checklist

👉 Check out how to submit a PR 👈