mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
fix lint
This commit is contained in:
parent
6b6b400847
commit
fba30e359a
@ -26,7 +26,11 @@ module.exports = function (db) {
|
|||||||
.where('app_name', appName)
|
.where('app_name', appName)
|
||||||
.map(row => ({ count: row.count }))
|
.map(row => ({ count: row.count }))
|
||||||
.then(rows => {
|
.then(rows => {
|
||||||
return rows[0].count > 0 ? update(appName, strategies) : insert(appName, strategies);
|
if (rows[0].count > 0) {
|
||||||
|
return update(appName, strategies);
|
||||||
|
} else {
|
||||||
|
return insert(appName, strategies);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user