Skip to content

Commit 809aebe

Browse files
davidmartos96simolus3
authored andcommitted
Fix typo in method parameter: loggers -> logger
1 parent 38ed119 commit 809aebe

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

packages/powersync_core/lib/src/database/powersync_database.dart

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@ abstract class PowerSyncDatabase
6868
/// Migrations are run on the database when this constructor is called.
6969
///
7070
/// [logger] defaults to [autoLogger], which logs to the console in debug builds.
71-
factory PowerSyncDatabase.withDatabase(
72-
{required Schema schema,
73-
required SqliteDatabase database,
74-
Logger? loggers}) {
71+
factory PowerSyncDatabase.withDatabase({
72+
required Schema schema,
73+
required SqliteDatabase database,
74+
Logger? logger,
75+
@Deprecated("Use [logger] instead") Logger? loggers,
76+
}) {
7577
return PowerSyncDatabaseImpl.withDatabase(
76-
schema: schema, database: database, logger: loggers);
78+
schema: schema,
79+
database: database,
80+
logger: loggers ?? logger,
81+
);
7782
}
7883
}

packages/powersync_core/test/utils/abstract_test_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ abstract mixin class TestPowerSyncFactory implements PowerSyncOpenFactory {
7474
schema: schema,
7575
database: SqliteDatabase.singleConnection(
7676
SqliteConnection.synchronousWrapper(raw)),
77-
loggers: logger,
77+
logger: logger,
7878
);
7979
}
8080
}

0 commit comments

Comments
 (0)