import {DataTypes} from 'nodejs-express-utils';
import ContactUs from '../models/ContactUs';

const extraQuery = 'WHERE timestamp=:timestamp';
const params = {timestamp: 1631318513};

// Update data
const data = {subject: 'Issue 12134'};
ContactUs.update(data, extraQuery, params)
    .then((res) => console.log(res))
    .catch((err) => console.error(err));
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter