first commit
This commit is contained in:
@ -6,10 +6,6 @@ const io_sock = require("socket.io-client");
|
||||
const socket = io_sock(`https://tanah-longosor-be.herokuapp.com/`);
|
||||
|
||||
|
||||
|
||||
|
||||
async function update_device_data(device_id, lat, lng, status) {
|
||||
// console.log("disini update device data")
|
||||
function send_notif(message, id, status, lat, lng) {
|
||||
// console.log(lat, "ini lat");
|
||||
// console.log(lng , "ini lng");
|
||||
@ -22,6 +18,11 @@ async function update_device_data(device_id, lat, lng, status) {
|
||||
lng: lng
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
async function update_device_data(device_id, lat, lng, status) {
|
||||
// console.log("disini update device data")
|
||||
|
||||
const device = await deviceModel.findOne({ _id: device_id });
|
||||
let statusnya, message;
|
||||
if (lat != '' && lng != '') {
|
||||
|
||||
Reference in New Issue
Block a user