Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
things
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Mar 24, 2016
2 parents 43b2ee3 + b2ded18 commit 98987b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/decorator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export default function load(queries) {
manager.resolve();

Object.keys(queries).forEach(q => {
props[q] = queries[q].prop()
props.status[q] = queries[q].status
props[q] = queries[q].props;
props.status[q] = queries[q].status;
});
}

Expand Down
7 changes: 6 additions & 1 deletion src/resolver/dumbResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class DumbResolver {
}

/**
*
* @param Object Object of source definition IDs to the SourceDefinition instance
*/
resolve(sourceMap) {
const {
Expand All @@ -96,6 +96,11 @@ export default class DumbResolver {
* @return bool
*/
resolveItem(query, sourceMap) {

const {
definitionsByModel
} = this;

// Get all source definitions that return the current model
let defs = definitionsByModel.get(query.model);

Expand Down
8 changes: 4 additions & 4 deletions src/resolver/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import Returns, { RETURNS_ALL_FIELDS } from '/src/sources/returns';

/**
* Predicate which checks that a given source accepts all parameters for a given
* query.
* Predicate which checks that a given query contains all required params
* for the source
*
* If a source doesn't accept all parameters for a query then the source can't
* satisfy said query.
* If a query doesn't provide all required parameters for a source then the
* source can't satisfy said query.
*
* NOTE: This only tests satisfiability of required params.
*
Expand Down

0 comments on commit 98987b3

Please sign in to comment.