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([
|
||||
async () => {
|
||||
const transaction = redis.multi()
|
||||
transaction.geoadd("device", longitude, latitude, deviceId)
|
||||
transaction.publish("deviceSet", deviceId)
|
||||
await transaction.exec()
|
||||
// const transaction = redis.multi()
|
||||
// transaction.geoadd("device", longitude, latitude, deviceId)
|
||||
// transaction.publish("deviceSet", deviceId)
|
||||
// await transaction.exec()
|
||||
await redis.geoadd("device", longitude, latitude, deviceId)
|
||||
|
||||
await addTask(tasks.GEOCODE_MOVE, { deviceId, userId, coordinates })
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue