Skip to content

Commit

Permalink
Fix migration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetsprague committed Dec 22, 2022
1 parent 5e3722b commit 3c1113e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports.up = async function (knex) {

groups.rows.forEach(async (row) => {
const groupId = parseInt(row.id)
const numMembers = parseInt(row.num_members)
const numMembers = parseInt(row.num_members || 0)
let query = `INSERT INTO groups_tags (group_id, tag_id, is_default, visibility, num_followers, created_at, updated_at)
VALUES (${groupId}, ${tagId}, true, 2, ${numMembers}, current_timestamp, current_timestamp)
ON CONFLICT (group_id, tag_id)
Expand Down

0 comments on commit 3c1113e

Please sign in to comment.