Minor cleanup

This commit is contained in:
calzoneman 2015-10-04 23:21:53 -07:00
parent 1d33c47bfe
commit 2fe646ec03
2 changed files with 1 additions and 3 deletions

View File

@ -7,8 +7,6 @@ import Logger from '../logger';
const SIZE_LIMIT = 1048576;
const QUERY_CHANNEL_ID_FOR_NAME = 'SELECT id FROM channels WHERE name = ?';
const QUERY_CHANNEL_DATA = 'SELECT `key`, `value` FROM channel_data WHERE channel_id = ?';
const QUERY_UPDATE_CHANNEL_DATA =
'INSERT INTO channel_data VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE `value` = ?';
function queryAsync(query, substitutions) {
return new Promise((resolve, reject) => {

View File

@ -10,7 +10,7 @@ var sio = require("socket.io");
var db = require("../database");
import * as ChannelStore from '../channel-storage/channelstore';
import { ChannelStateSizeError } from '../errors';
import * as Promise from 'bluebird';
import Promise from 'bluebird';
/**
* Previously, async channel functions were riddled with race conditions due to