Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bull
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 175
    • Issues 175
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OptimalBits
  • bull
  • Merge requests
  • !1230

Throwing error when trying to insert object with existing ID

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/MicahMartin/develop into develop Feb 26, 2019
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: MicahMartin

Now we can do something like

  try {
    const job = await JobQueue.add('storyJob', data, {jobId: `${id}:${lastMod}`});
    res.json({message: `storyID ${id}`});
  } catch (e) {
    console.log(`Error adding job!: ${e}`);
    res.status(500).json({message: `${e}`});
  }
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/MicahMartin/develop