diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js index 7a0cb8a..b870386 100644 --- a/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js +++ b/code/VideoAccess-VCMP/api/app/lib/controllers/camera/index.js @@ -33,10 +33,8 @@ async function getCameraProject (ctx, next) { attributes: ['token'] }, { model: models.CameraRemark, - attributes: ['remark'], - order: [ - ['id', 'DESC'] - ], + attributes: ['id', 'remark'], + order: ['id'] }], distinct: true }