Skip to content

Commit

Permalink
Fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Oct 31, 2016
1 parent 6b2fac9 commit 492eedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/relation.js
Expand Up @@ -480,7 +480,7 @@ export default class extends think.model.base {
let model = mapOpts.model;
await model.getSchema();
let rfKey = mapOpts.rfKey || (model.getModelName().toLowerCase() + '_id');
let relationModel = mapOpts.rModel?this.model(mapOpts.rModel):this.getRelationModel(model);
let relationModel = mapOpts.rModel ? this.model(mapOpts.rModel) : this.getRelationModel(model);

let type = mapOpts.postType;
if (type === 'DELETE' || type === 'UPDATE') {
Expand Down

0 comments on commit 492eedc

Please sign in to comment.