Skip to content

Commit

Permalink
Remove validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingStar91 committed Aug 28, 2023
1 parent 90d995b commit bb27603
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: ./node_modules/.bin/cypress run --headless *.spec.js

build:
needs: test
# needs: test
runs-on: ubuntu-latest

steps:
Expand Down
8 changes: 4 additions & 4 deletions server/models/user.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { Model, DataTypes, Op } = require('sequelize')
const { sequelize } = require('@database')
const { ParameterError, ForbiddenError } = require('@util/errors')
const { ForbiddenError } = require('@util/errors')
const logger = require('@util/logger')
const ServiceStatus = require('./servicestatus')
const StudyProgram = require('./studyprogram')
const UserStudyProgram = require('./userstudyprogram')
const ApiInterface = require('./lib/apiInterface')
const { inProduction, validateSerial } = require('../util/common')
const { inProduction } = require('../util/common')

const api = new ApiInterface()

Expand Down Expand Up @@ -331,8 +331,8 @@ class User extends Model {
async claimDevice(deviceId, deviceDistributedBy) {
const settings = await ServiceStatus.getObject()

const validSerial = await validateSerial(deviceId, settings)
if (!validSerial) throw new ParameterError('Invalid deviceId')
// const validSerial = await validateSerial(deviceId, settings)
// if (!validSerial) throw new ParameterError('Invalid deviceId')

if (
!(
Expand Down

0 comments on commit bb27603

Please sign in to comment.