chore: clean dead code
This commit is contained in:
parent
28139f70e9
commit
6025bfabff
1 changed files with 5 additions and 4 deletions
|
@ -36,10 +36,11 @@ module.exports = function () {
|
||||||
|
|
||||||
await async.parallel([
|
await async.parallel([
|
||||||
async () => {
|
async () => {
|
||||||
const transaction = redis.multi()
|
// const transaction = redis.multi()
|
||||||
transaction.geoadd("device", longitude, latitude, deviceId)
|
// transaction.geoadd("device", longitude, latitude, deviceId)
|
||||||
transaction.publish("deviceSet", deviceId)
|
// transaction.publish("deviceSet", deviceId)
|
||||||
await transaction.exec()
|
// await transaction.exec()
|
||||||
|
await redis.geoadd("device", longitude, latitude, deviceId)
|
||||||
|
|
||||||
await addTask(tasks.GEOCODE_MOVE, { deviceId, userId, coordinates })
|
await addTask(tasks.GEOCODE_MOVE, { deviceId, userId, coordinates })
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue