diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-04-16 16:54:53 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-04-16 16:54:53 +0500 |
| commit | e7c7f2ed1211a801ceb5eed32b03a8fb9f791703 (patch) | |
| tree | cc7be349aa6eed06f39feac2038ade6444b7e9a2 /backend/src/Models | |
| parent | 9848b5589773a2d3e172fe72285b9203c36fd260 (diff) | |
login
Diffstat (limited to 'backend/src/Models')
| -rw-r--r-- | backend/src/Models/User.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/Models/User.zig b/backend/src/Models/User.zig index 79015d0..a52186d 100644 --- a/backend/src/Models/User.zig +++ b/backend/src/Models/User.zig @@ -50,7 +50,7 @@ pub const User = struct { // Parses the db row and returns the result. You are expected to use the // actual DB schema and use * as a fields selector pub fn MapWithAllocator(allocator: std.mem.Allocator, row: *const pg.Row) !User { - const role_record = try allocator.dupe(u8, row.get([]const u8, 3)); + const role_record = try allocator.dupe(u8, try row.get([]const u8, 3)); return User { .Id = try allocator.dupe(u8, try row.get([]const u8, 0)), |
