Fix bug and DB string
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
const { body, param, validationResult } = require('express-validator');
|
||||
const { _sr } = require('../plugins/serverResponses');
|
||||
const { checkValidations } = require('../plugins/controllersHelperFunctions');
|
||||
const User = require('../models/User');
|
||||
const Device = require('../models/GPS.Device');
|
||||
@@ -5,13 +5,6 @@ const User = require('../models/User');
|
||||
const InstalledDevice = require('../models/GPS.InstalledDevice');
|
||||
const Device = require('../models/GPS.Device');
|
||||
|
||||
/**
|
||||
* get all installed device for user
|
||||
* get all installed device for admin
|
||||
* patch a installed device by id and type
|
||||
*/
|
||||
|
||||
|
||||
module.exports.deviceRegistration = [
|
||||
[
|
||||
body('IMEI').notEmpty().isString().withMessage('لطفا IMEI را وارد یا تصحیح کنید')
|
||||
|
||||
Reference in New Issue
Block a user