Add fix for data buckets deletion

This commit is contained in:
Akkadius 2018-10-20 21:07:45 -05:00
parent 9f039b47e9
commit 55197cf830

View File

@ -107,7 +107,7 @@ uint64 DataBucket::DoesBucketExist(std::string bucket_key) {
*/ */
bool DataBucket::DeleteData(std::string bucket_key) { bool DataBucket::DeleteData(std::string bucket_key) {
std::string query = StringFormat( std::string query = StringFormat(
"DELETE FROM `data_buckets` WHERE `key` = '%s' AND (`expires` > %lld OR `expires` = 0)", "DELETE FROM `data_buckets` WHERE `key` = '%s'",
EscapeString(bucket_key).c_str() EscapeString(bucket_key).c_str()
); );