mirror of
https://github.com/docmost/docmost.git
synced 2026-06-10 10:13:01 +08:00
rename current device property
This commit is contained in:
@@ -71,12 +71,12 @@ export class SessionService {
|
||||
geoLocation: s.geoLocation,
|
||||
lastActiveAt: s.lastActiveAt,
|
||||
createdAt: s.createdAt,
|
||||
isCurrent: s.id === currentSessionId,
|
||||
isCurrentDevice: s.id === currentSessionId,
|
||||
}));
|
||||
|
||||
return mapped.sort((a, b) => {
|
||||
if (a.isCurrent) return -1;
|
||||
if (b.isCurrent) return 1;
|
||||
if (a.isCurrentDevice) return -1;
|
||||
if (b.isCurrentDevice) return 1;
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user