mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Fix broken type detection in database setup
This commit is contained in:
parent
a6d1b92f5e
commit
e4da5bc9c8
@ -33,7 +33,7 @@ pub fn repo(allocator: std.mem.Allocator, app: anytype) !Repo {
|
|||||||
.testing => false,
|
.testing => false,
|
||||||
},
|
},
|
||||||
// Checking field presence here makes setting up test App a bit simpler.
|
// Checking field presence here makes setting up test App a bit simpler.
|
||||||
.env = if (@hasField(@TypeOf(app), "env")) try repoEnv(app.env) else .{},
|
.env = if (@TypeOf(app) == *const jetzig.App) try repoEnv(app.env) else .{},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user