blob: 2545ba407bba4a09cd263a165065275c3edaddf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2025 metamuffin <metamuffin.org>
*/
pub mod log;
pub mod user;
use crate::session::AdminSession;
use anyhow::Result;
use jellydb::Database;
use jellyimport::IMPORT_ERRORS;
pub async fn get_import_errors(_session: &AdminSession) -> Vec<String> {
IMPORT_ERRORS.read().await.to_owned()
}
pub fn list_invites(_session: &AdminSession, database: &Database) -> Result<Vec<String>> {
database.list_invites()
}
|