Traduction + alias + routing + refactoring

This commit is contained in:
Sebastien Riviere
2026-02-20 22:00:54 +01:00
parent 776bbcd723
commit 76ee9674de
50 changed files with 2978 additions and 1746 deletions

View File

@@ -2,9 +2,9 @@
import { defineTask, isTaskRegisteredAsync } from "expo-task-manager";
import * as Location from 'expo-location';
// Services
import { emitUpdatePosition } from "../socket/emitters";
import { emitUpdatePosition } from "@/services/socket/emitters";
// Constants
import { TASKS, LOCATION_PARAMETERS } from "../../constants";
import { TASKS, LOCATION_PARAMETERS } from "@/constants";
// Task
@@ -15,6 +15,7 @@ defineTask(TASKS.BACKGROUND_LOCATION, async ({ data, error }) => {
return;
}
if (data) {
// @ts-ignore
const { locations } = data;
if (locations.length == 0) {
console.log("No location measured.");