Skip to content

Commit

Permalink
ingesting admins (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjohn7 authored Feb 21, 2025
1 parent c853f5f commit 3d4047a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ impl SqliteLayer {
.context("Failed to create user")?;
}

for admin in &cfg.accounts.admins {
create_user(&mut *tx, &admin.name, &admin.password, Role::Admin)
.await
.context("Failed to create admin user")?;
}

tx.commit()
.await
.context("Failed to commit user ingestion transaction")?;
Expand Down

0 comments on commit 3d4047a

Please sign in to comment.