Skip to content

Commit

Permalink
Reverse users creation order
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Apr 14, 2024
1 parent 242a301 commit 160cc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/webserver/infrastructure/sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func Connect(path string, wordsPerMinute float64) *gorm.DB {
log.Fatal(err)
}
}
addDefaultAdmin(db, wordsPerMinute)
addUsernames(db)
if res := db.Exec("PRAGMA foreign_keys(1)", nil); res.Error != nil {
log.Fatal(err)
}
addDefaultAdmin(db, wordsPerMinute)
return db
}

Expand Down

0 comments on commit 160cc29

Please sign in to comment.