Skip to content

Commit

Permalink
chore: update addJob method argument to destructure project_id
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlight-komorebi committed Nov 30, 2021
1 parent 773510a commit 7d3de13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/actions/translation_workflow/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ const Models = require('./models');
* @param {string} job.job_uid - identifier of job from translation vendor
* @param {string} job.status - string value of status enum
* @param {string} job.locale - locale of job
* @param {string} job.project_id -- project id job is associated with (from translation vendor)
* @returns newly created job
*/
const addJob = async ({ job_uid, status, locale }) => {
const job = await Models.Job.create({ job_uid, status, locale });
const addJob = async ({ job_uid, status, locale, project_id }) => {
const job = await Models.Job.create({ job_uid, status, locale, project_id });
return job;
};

Expand Down

0 comments on commit 7d3de13

Please sign in to comment.