fixed minor error with promises declaration

parent c051cdc1
...@@ -208,7 +208,7 @@ module.exports = { ...@@ -208,7 +208,7 @@ module.exports = {
// //
// License number, if passed is used, otherwise, a trial one is generated // License number, if passed is used, otherwise, a trial one is generated
// //
Promise(function(resolve, reject) { new Promise(function(resolve, reject) {
if (params.license) if (params.license)
resolve(params.license); resolve(params.license);
else { else {
...@@ -467,7 +467,7 @@ module.exports = { ...@@ -467,7 +467,7 @@ module.exports = {
// Get student ID either because we got it or through a license // Get student ID either because we got it or through a license
// As it can be resolved through two possibilities, better to user promises! // As it can be resolved through two possibilities, better to user promises!
// //
Promise(funcion(reject, resolve) { new Promise(funcion(resolve, reject) {
if (!params.id_stu && params.license) { if (!params.id_stu && params.license) {
// get student, license attribute will be completed // get student, license attribute will be completed
License.getStudent(params.license, function(err, stu) { License.getStudent(params.license, function(err, stu) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment