mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
22 lines
377 B
TypeScript
22 lines
377 B
TypeScript
import api from "@/services/api";
|
|
|
|
async function ingestPlaySessions({
|
|
deviceId = null,
|
|
sessions,
|
|
}: {
|
|
deviceId?: string | null;
|
|
sessions: {
|
|
rom_id: number;
|
|
start_time: string;
|
|
end_time: string;
|
|
duration_ms: number;
|
|
}[];
|
|
}) {
|
|
return api.post("/play-sessions", {
|
|
device_id: deviceId,
|
|
sessions,
|
|
});
|
|
}
|
|
|
|
export default { ingestPlaySessions };
|