fix: acme.js INSERT column count mismatch (16 cols, 16 vals)

This commit is contained in:
Tiago Yamamoto 2025-12-24 11:59:18 -03:00
parent e6fb6dd8cd
commit b454ae05a1

View file

@ -192,15 +192,13 @@ export async function seedAcmeCorp() {
for (let b = 0; b < 4; b++) { for (let b = 0; b < 4; b++) {
selectedBenefits.push(benefits[(i + b) % benefits.length]); selectedBenefits.push(benefits[(i + b) % benefits.length]);
} }
await pool.query(` await pool.query(`
INSERT INTO jobs ( company_id, created_by, title, description, INSERT INTO jobs ( company_id, created_by, title, description,
salary_min, salary_max, salary_type, employment_type, working_hours, salary_min, salary_max, salary_type, employment_type, working_hours,
location, requirements, benefits, visa_support, language_level, status, work_mode) location, requirements, benefits, visa_support, language_level, status, work_mode)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)
`, [ `, [
acmeCompanyId, acmeCompanyId,
seedUserId, seedUserId,
title, title,