add /role_income edit

This commit is contained in:
stjet
2026-01-13 01:56:40 +00:00
parent e9c64d494f
commit 9a9a728949
4 changed files with 46 additions and 4 deletions

4
db.ts
View File

@@ -173,6 +173,10 @@ export async function create_role_income(role: string, hours: number, income: nu
});
}
export async function edit_role_income(role_income: RoleIncome) {
return await store.replaceOne({ role: role_income.role }, role_income);
}
export async function update_role_income_last_claim(role: string) {
return await role_income.updateOne({ role }, {
$set: {