traxxx/src/tools/knex-update.js

19 lines
258 B
JavaScript
Executable File

'use strict';
const knex = require('../knex');
async function update() {
const query = knex('bans')
.update('type', {
type: 'mute',
username_original: 'charles',
})
.where('id', 2754);
console.log(query.toSQL());
await query;
}
update();