Skip to content

Commit 338c60b

Browse files
committed
touch em all
1 parent 087a02b commit 338c60b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

db-controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const create = async function (req, res, next) {
104104
let rerumProp = { "__rerum": utils.configureRerumOptions(generatorAgent, provided, false, false)["__rerum"] }
105105
rerumProp.__rerum.slug = slug
106106
const providedID = provided._id
107-
let _id = isValidID(providedID) ? providedID : ObjectID()
107+
const id = isValidID(providedID) ? providedID : ObjectID()
108108
delete provided["_rerum"]
109109
delete provided["@id"]
110110
if(_contextid(provided["@context"])) {
@@ -113,7 +113,7 @@ const create = async function (req, res, next) {
113113
}
114114
delete provided["@context"]
115115

116-
let newObject = Object.assign(context, { "@id": process.env.RERUM_ID_PREFIX + _id }, provided, rerumProp, { "_id": _id })
116+
let newObject = Object.assign(context, { "@id": process.env.RERUM_ID_PREFIX + id }, provided, rerumProp, { "_id": id })
117117
console.log("CREATE")
118118
try {
119119
let result = await db.insertOne(newObject)

0 commit comments

Comments
 (0)