Skip to content

Commit

Permalink
fix: merge taggled template literal values with direct values
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jun 5, 2017
1 parent 23e413d commit 4737124
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utilities/mapTaggedTemplateLiteralInvocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export default (targetMethod: *) => {
if (typeof maybeQuery === 'string') {
return targetMethod(maybeQuery, values);
} else {
return targetMethod(maybeQuery.sql, maybeQuery.values);
return targetMethod(maybeQuery.sql, [
...maybeQuery.values,
values
]);
}
};
};

0 comments on commit 4737124

Please sign in to comment.