chore: refactor auto_method macro for SecondaryPermission

This commit is contained in:
trisua 2025-07-02 23:10:58 -04:00
parent ee2f7c7cbb
commit 0aa2ea362f
9 changed files with 47 additions and 47 deletions

View file

@ -201,5 +201,5 @@ impl DataManager {
Ok(())
}
auto_method!(update_emoji_name(&str)@get_emoji_by_id:MANAGE_EMOJIS -> "UPDATE emojis SET name = $1 WHERE id = $2" --cache-key-tmpl="atto.emoji:{}");
auto_method!(update_emoji_name(&str)@get_emoji_by_id:FinePermission::MANAGE_EMOJIS; -> "UPDATE emojis SET name = $1 WHERE id = $2" --cache-key-tmpl="atto.emoji:{}");
}