refactor: update imports to use new db package

This commit is contained in:
2026-05-06 23:13:43 +02:00
parent 9cefb39d01
commit 7f768080ee
14 changed files with 80 additions and 78 deletions

View File

@@ -73,8 +73,8 @@ func RequireAuth(next http.Handler) http.Handler {
})
}
func GetUser(ctx context.Context) *database.User {
user, ok := ctx.Value(ctxpkg.UserKey).(*database.User)
func GetUser(ctx context.Context) *db.User {
user, ok := ctx.Value(ctxpkg.UserKey).(*db.User)
if !ok {
return nil
}