Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions demos/MAUITodo/Data/PowerSyncData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public PowerSyncData()
});
var logger = loggerFactory.CreateLogger("PowerSyncLogger");

var dbPath = Path.Combine(FileSystem.AppDataDirectory, "examplsee.db");
var dbPath = Path.Combine(FileSystem.AppDataDirectory, "example.db");
var factory = new MAUISQLiteDBOpenFactory(new MDSQLiteOpenFactoryOptions()
{
DbFilename = dbPath
Expand Down Expand Up @@ -50,8 +50,8 @@ await Db.Execute(
else
{
await Db.Execute(
"INSERT INTO lists (id, created_at, name, owner_id, created_at) VALUES (uuid(), datetime(), ?, ?, ?)",
[list.Name, UserId, DateTime.UtcNow.ToString("o")]);
"INSERT INTO lists (id, created_at, name, owner_id) VALUES (uuid(), datetime(), ?, ?)",
[list.Name, UserId]);
}
}

Expand Down Expand Up @@ -82,14 +82,14 @@ await Db.Execute(
{
await Db.Execute(
@"INSERT INTO todos
(id, list_id, description, created_at, completed, created_by, created_at)
VALUES (uuid(), ?, ?, ?, ?, ?, datetime())",
(id, list_id, description, created_at, completed, created_by, completed_at)
VALUES (uuid(), ?, ?, datetime(), ?, ?, ?)",
[
item.ListId,
item.Description,
item.CreatedAt,
item.Completed ? 1 : 0,
UserId
UserId,
item.CompletedAt!,
]);
}
}
Expand Down