We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b476825 commit 1335efbCopy full SHA for 1335efb
services/backend/src/services/deviceService.ts
@@ -274,17 +274,11 @@ export class DeviceService {
274
}
275
276
/**
277
- * Remove device (soft delete by marking inactive)
+ * Remove device (hard delete)
278
*/
279
async removeDevice(deviceId: string, userId: string): Promise<void> {
280
- const now = new Date();
281
-
282
const result = await this.db
283
- .update(devices)
284
- .set({
285
- is_active: false,
286
- updated_at: now,
287
- })
+ .delete(devices)
288
.where(and(
289
eq(devices.id, deviceId),
290
eq(devices.user_id, userId)
0 commit comments