|
|
|
@ -1182,6 +1182,7 @@ fastify.post('/api/getSensorByHardwareId/:storeId', {
|
|
|
|
|
handler: storeController.getSensorByHardwareId,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/updateSensorById/:_id", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "Edit specific sensor fields",
|
|
|
|
@ -1213,16 +1214,16 @@ fastify.post("/api/updateSensorById/:_id", {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.post('/api/updateSensorQC/:_id', {
|
|
|
|
|
fastify.post('/api/updateSensorQC/:hardwareId', {
|
|
|
|
|
schema: {
|
|
|
|
|
description: 'Edit specific sensor QC fields',
|
|
|
|
|
tags: ['Store-Data'],
|
|
|
|
|
summary: 'Update QC fields of a sensor',
|
|
|
|
|
params: {
|
|
|
|
|
required: ['_id'],
|
|
|
|
|
required: ['_ihardwareIdd'],
|
|
|
|
|
type: 'object',
|
|
|
|
|
properties: {
|
|
|
|
|
_id: { type: 'string', description: 'Sensor ID' },
|
|
|
|
|
hardwareId: { type: 'string', description: 'Sensor ID' },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|