Skip to content
2 changes: 1 addition & 1 deletion .github/workflows/api-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: ./.github/actions/bootstrap
with:
package: api-server
skip-build: true
skip-build: 'true'
- name: tests
run: |
. /opt/ros/rolling/setup.bash
Expand Down
10 changes: 2 additions & 8 deletions packages/api-server/api_server/models/beacons.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
from pydantic import BaseModel
from .ros_pydantic import rmf_fleet_msgs


class BeaconState(BaseModel):
id: str
online: bool
category: str
activated: bool
level: str
BeaconState = rmf_fleet_msgs.msg.BeaconState
2 changes: 1 addition & 1 deletion packages/api-server/api_server/repositories/rmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def get_ingestor_state(self, guid: str) -> IngestorState | None:
async def save_beacon_state(self, beacon_state: BeaconState) -> None:
d = beacon_state.model_dump()
del d["id"]
await ttm.BeaconState.update_or_create(d, id_=beacon_state.id)
await ttm.BeaconState.update_or_create(d, id=beacon_state.id)

async def query_users(
self,
Expand Down