mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
cleanup code
This commit is contained in:
@@ -3,7 +3,15 @@
|
||||
class SQLiteService {
|
||||
execute(callback, sql, args = null) {
|
||||
return new Promise((resolve, reject) => {
|
||||
SQLite.Execute(callback, resolve, reject, sql, args);
|
||||
SQLite.Execute((err, data) => {
|
||||
if (err !== null) {
|
||||
reject(err);
|
||||
} else if (data === null) {
|
||||
resolve();
|
||||
} else {
|
||||
callback(data);
|
||||
}
|
||||
}, sql, args);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user