Skip to content

Commit b5889b7

Browse files
committed
removed compression
1 parent 96d2330 commit b5889b7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/api/athena.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,13 @@ const REQUESTS = {
147147
}),
148148
result: z.object({ success: z.number() }),
149149
},
150-
151150
getAllParams: {
152151
params: z.object({}),
153152
result: ParamValue.array(),
154153
},
155154
saveParams: {
156155
params: z.object({
157156
params_to_update: z.record(z.string().nullable()),
158-
compression: z.boolean(),
159157
}),
160158
result: z.record(z.string()),
161159
},

src/pages/device/useDeviceParams.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const useDeviceParams = create<DeviceParamsState>((set, get) => ({
6565
changes = { ...get().changes, ...changes }
6666
set({ isSaving: true, changes: changes })
6767
const params_to_update = Object.fromEntries(Object.entries(changes).map(([k, v]) => [k, v === null ? null : encode(v)]))
68-
const result = await callAthena({ type: 'saveParams', dongleId: get().dongleId!, params: { params_to_update, compression: false } })
68+
const result = await callAthena({ type: 'saveParams', dongleId: get().dongleId!, params: { params_to_update } })
6969

7070
const errors = Object.entries(result?.result ?? {}).filter(([_, v]) => v.startsWith('error:'))
7171
if (errors.length) errors.forEach(([k, v]) => console.error(`${k}: ${v.replace('error: ', '')}`))

0 commit comments

Comments
 (0)