GladysProject/Gladys

View on GitHub
server/migrations/20220503155531-clean-nan-device-states-aggregate.js

Summary

Maintainability
A
1 hr
Test Coverage
const db = require('../models');

module.exports = {
  up: async () => {
    await db.DeviceFeatureStateAggregate.destroy({
      where: {
        value: Number.NaN,
      },
    });
  },
  down: async () => {},
};