Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: user meta is not a function error #462

Merged
merged 5 commits into from
Jul 17, 2020
Merged

Conversation

its-lucas
Copy link
Contributor

This fixes the user.meta is not a function error that occurs when using the 0.4.0-beta.0 release of Prime.

The error occurs due to the queried entities not receiving the methods of the entity type for some reason and is resolved by changing the function to a static method that takes a user's ID as an argument.

Solves: #411

its-lucas and others added 5 commits February 20, 2020 14:41
Update prime-core package.json to resolving typing errors between
@accounts/typeorm and typeorm which causes compilation to fail.
Resolve the user.meta is not a function error by making user.meta a
static function which takes an id as an argument due to entities not
inheriting their types methods.
@codecov
Copy link

codecov bot commented Jul 17, 2020

Codecov Report

Merging #462 into master will increase coverage by 0.02%.
The diff coverage is 70.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
+ Coverage   73.52%   73.55%   +0.02%     
==========================================
  Files         141      141              
  Lines        3162     3161       -1     
  Branches      507      507              
==========================================
  Hits         2325     2325              
+ Misses        837      836       -1     
Impacted Files Coverage Δ
...ore/src/modules/internal/resolvers/UserResolver.ts 55.88% <40.00%> (+0.54%) ⬆️
packages/prime-core/src/entities/User.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ade023...1dae187. Read the comment docs.

@birkir birkir merged commit 2e94286 into birkir:master Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants