Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Feb 4, 2024
1 parent 98cd231 commit ae3e398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nexrender-server/src/routes/jobs-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const { insert } = require('../helpers/database')
module.exports = async (req, res) => {
const data = await json(req, {limit: "100mb"})

if( typeof data.tags == 'string' ){
if (typeof data.tags == 'string') {
data.tags = data.tags.replace(/[^a-z0-9, ]/gi, '')
}

const job = await create(data); {
const job = await create(data); {
job.state = 'queued';
job.creator = req.headers["x-forwarded-for"] || req.socket.remoteAddress
}
Expand Down

0 comments on commit ae3e398

Please sign in to comment.