Skip to content

Commit 32f4958

Browse files
committed
fix(api): correct model name for push notification device
- Update modelName from 'push_notification_devices' to 'push_notification_device' - This change ensures consistency in API calls related to push notification devices
1 parent 05d8ae6 commit 32f4958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bootstrap.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ Future<Widget> bootstrap(
343343
);
344344
pushNotificationDeviceClient = DataApi<PushNotificationDevice>(
345345
httpClient: httpClient,
346-
modelName: 'push_notification_devices',
346+
modelName: 'push_notification_device',
347347
fromJson: PushNotificationDevice.fromJson,
348348
toJson: (device) => device.toJson(),
349349
logger: logger,
@@ -402,7 +402,7 @@ Future<Widget> bootstrap(
402402
);
403403
pushNotificationDeviceClient = DataApi<PushNotificationDevice>(
404404
httpClient: httpClient,
405-
modelName: 'push_notification_devices',
405+
modelName: 'push_notification_device',
406406
fromJson: PushNotificationDevice.fromJson,
407407
toJson: (device) => device.toJson(),
408408
logger: logger,

0 commit comments

Comments
 (0)