Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(addForeignKey): pass joined strings to
util.format
node v12 seems to no longer format arrays passed as strings by `.toString()`ing them, which effectively resulted in a `.join(',')`, but returning in something to the tune of: ``` > util.format('%s', ['foo','bar']) "[ 'foo', 'bar' ]" ``` While v11.15.0 returns: ``` > util.format('%s', ['foo','bar']) 'foo,bar' ``` This fixes this issue on v12, and doesn't break any other version. Signed-off-by: Maciej Małecki <me@mmalecki.com> Reported-by: Marcin Smołka <marcinsa12@gmail.com>
- Loading branch information