Ingatlanok tulajdoni lapok és tulajdonosok táblázatos és térképi megjelenítése.
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
This commit is contained in:
@@ -190,25 +190,22 @@ class DeviceIdentityService extends GetxService {
|
||||
final user = Supabase.instance.client.auth.currentUser;
|
||||
if (user == null || deviceId.isEmpty) return;
|
||||
|
||||
await Supabase.instance.client.from('terepi_seged_devices').upsert({
|
||||
'id': appInstanceId,
|
||||
'user_id': user.id,
|
||||
'name': info.systemDeviceName,
|
||||
'device_id': deviceId,
|
||||
'platform': info.platform,
|
||||
'model': model,
|
||||
'os_version': info.osVersion,
|
||||
'app_version': appInfo,
|
||||
'last_seen_at': DateTime.now().toUtc().toIso8601String()
|
||||
});
|
||||
|
||||
//
|
||||
// // await Supabase.instance.client
|
||||
// .from('devices')
|
||||
// .upsert(
|
||||
// info.toRegistrationMap(label: deviceLabel.value),
|
||||
// onConflict: 'device_id',
|
||||
// );
|
||||
try {
|
||||
await Supabase.instance.client.from('terepi_seged_devices').upsert({
|
||||
'id': appInstanceId,
|
||||
'user_id': user.id,
|
||||
'name': info.systemDeviceName,
|
||||
'device_id': deviceId,
|
||||
'platform': info.platform,
|
||||
'model': model,
|
||||
'os_version': info.osVersion,
|
||||
'app_version': appInfo,
|
||||
'last_seen_at': DateTime.now().toUtc().toIso8601String()
|
||||
});
|
||||
} catch (e) {
|
||||
AppLogger.e('DeviceIdentityService.registerDevice',
|
||||
'Eszköz-regisztráció hiba (user=${user.id} - device=$deviceId): $e');
|
||||
}
|
||||
}
|
||||
|
||||
// ── Gyors elérők (kényelemért) ────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user