fixed minor error with promises declaration

parent c051cdc1
......@@ -208,7 +208,7 @@ module.exports = {
//
// License number, if passed is used, otherwise, a trial one is generated
//
Promise(function(resolve, reject) {
new Promise(function(resolve, reject) {
if (params.license)
resolve(params.license);
else {
......@@ -467,7 +467,7 @@ module.exports = {
// Get student ID either because we got it or through a license
// 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) {
// get student, license attribute will be completed
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