fix bug where forgetting outdated node positions updated the updated_at column when the node never had a position
This commit is contained in:
@ -584,6 +584,13 @@ async function forgetOutdatedNodePositions() {
|
|||||||
// position_updated_at before x seconds ago
|
// position_updated_at before x seconds ago
|
||||||
lt: new Date(Date.now() - forgetOutdatedNodePositionsAfterSeconds * 1000),
|
lt: new Date(Date.now() - forgetOutdatedNodePositionsAfterSeconds * 1000),
|
||||||
},
|
},
|
||||||
|
// don't forget outdated node positions for nodes that don't actually have a position set
|
||||||
|
// otherwise the updated_at is updated, when nothing changed
|
||||||
|
NOT: {
|
||||||
|
latitude: null,
|
||||||
|
longitude: null,
|
||||||
|
altitude: null,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
latitude: null,
|
latitude: null,
|
||||||
|
Reference in New Issue
Block a user