mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Fix missing @tagName after nameCast changes
This commit is contained in:
parent
6d9fa8bff4
commit
b7c3c0045a
@ -14,7 +14,7 @@ pub fn getUserId(comptime id_type: IdType, request: *jetzig.Request) !?switch (i
|
||||
} {
|
||||
const session = try request.session();
|
||||
|
||||
return session.getT(@field(jetzig.data.ValueType, id_type), "_jetzig_user_id");
|
||||
return session.getT(@field(jetzig.data.ValueType, @tagName(id_type)), "_jetzig_user_id");
|
||||
}
|
||||
|
||||
pub fn signIn(request: *jetzig.Request, user_id: anytype) !void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user