Skip to content
Snippets Groups Projects
Commit 12531566 authored by Louis's avatar Louis :fire:
Browse files

Remove logging

parent fda57b82
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,6 @@ module.exports = (sequelize, DataTypes) => {
Model.fromToken = async function(token) {
const crypto = require('core/utils/crypto')
const { session } = JSON.parse(await crypto.decrypt(token))
console.log(session)
return Model.findOne({ where: { id: session } })
}
Model.prototype.checkPassword = async function(password) {
......@@ -95,7 +94,6 @@ module.exports = (sequelize, DataTypes) => {
Model.prototype.handleIncludes = async function(includes, loaders = null) {
const inc = new Set(includes)
console.log(includes)
if (inc.has('user_age')) {
this.age = await this.getAge()
}
......
......@@ -5,8 +5,6 @@ exports.register = async ctx => {
const { email, name, password, date_of_birth } = ctx.request.body
const user = await User.findOne({ where: { email } })
console.log(user)
if (user != null) {
throw new HttpError({ status: 409, title: 'Email Already Exists', description: 'That email address already exists. Please try another email address.' })
}
......
......@@ -4,10 +4,8 @@ const { Op } = Sequelize
const moment = require('moment')
exports.postMetric = async ctx => {
console.log("METRICS")
const user = await ctx.services.authService.getUser()
console.log(user)
const allowedTypes = new Set(Metric.getSupportedMetricTypes())
const { value, type, location } = ctx.request.body
......@@ -94,7 +92,5 @@ exports.getWithin = async ctx => {
},
})
console.log(metrics)
ctx.body = { metrics }
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment