fix require
This commit is contained in:
Родитель
88b1a16f83
Коммит
f1387f6748
|
@ -1,4 +1,4 @@
|
|||
var Hapi = require('Hapi');
|
||||
var Hapi = require('hapi');
|
||||
var verify = require('picl-server/lib/verify.js');
|
||||
var config = require('./config.js');
|
||||
var users = require('./users.js');
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const Hapi = require('Hapi');
|
||||
const Hapi = require('hapi');
|
||||
|
||||
const users = require('../lib/users.js');
|
||||
const prereqs = require('../lib/prereqs.js');
|
||||
|
@ -26,7 +26,6 @@ exports.routes = [
|
|||
},
|
||||
response: {
|
||||
schema: {
|
||||
success: Bool().required(),
|
||||
kA: Str().required(),
|
||||
deviceId: Str().required(),
|
||||
version: Num().integer().required()
|
||||
|
@ -44,7 +43,6 @@ function create(request) {
|
|||
if (err) return request.reply(err);
|
||||
|
||||
request.reply.payload({
|
||||
success: true,
|
||||
kA: user.kA,
|
||||
deviceId: deviceId,
|
||||
version: user.kA_version
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const Hapi = require('Hapi');
|
||||
const Hapi = require('hapi');
|
||||
|
||||
const users = require('../lib/users.js');
|
||||
const prereqs = require('../lib/prereqs.js');
|
||||
|
@ -21,7 +21,6 @@ var getConfig = {
|
|||
},
|
||||
response: {
|
||||
schema: {
|
||||
success: Bool().required(),
|
||||
kA: Str().required(),
|
||||
version: Num().integer().required()
|
||||
}
|
||||
|
@ -91,7 +90,7 @@ function create(request) {
|
|||
users.create(request.pre.email, function(err, result) {
|
||||
if (err) return request.reply(err);
|
||||
|
||||
request.reply({
|
||||
request.reply.payload({
|
||||
kA: result.kA,
|
||||
deviceId: result.deviceId,
|
||||
version: result.version
|
||||
|
|
Загрузка…
Ссылка в новой задаче