Skip to content

Commit

Permalink
fix: Generate primary key name array properly.
Browse files Browse the repository at this point in the history
Was concatenating them all together, but we need then nice and separate.
  • Loading branch information
jezhiggins committed Mar 4, 2019
1 parent 76f232c commit 59f1e85
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -5,7 +5,7 @@ const _ = require('lodash')
module.exports = function generateTriggerStatement (options) {
const namespace = _.snakeCase(options.model.namespace)
const name = _.snakeCase(options.model.name)
const pk = _.snakeCase(options.model.primaryKey)
const pk = options.model.primaryKey.map( _.snakeCase).join(',')

switch (options.action) {
case 'ADD':
Expand Down

0 comments on commit 59f1e85

Please sign in to comment.