Skip to content

Commit

Permalink
fix: birthday reminder and login reloction
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Aug 25, 2024
1 parent 626095f commit b82ee8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/client/src/views/Admin/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ const LoginView: React.FC = () => {

useEffect(() => {
if (!isLogged) return
navigate(0)
navigate('/admin')
// biome-ignore lint:
window.location = window.location
}, [navigate, isLogged])

const [form] = Form.useForm<LoginData>()
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moehub",
"version": "1.0.0",
"version": "1.0.1",
"description": "Your anime character collection gallery, easily build, freely share.",
"main": "lib/index.js",
"license": "GPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class Bot {
if ((!birthdays && !smtp_email) || !smtp_host || !smtp_key || !smtp_port || !smtp_target || !smtp_template) return
if (smtp_hours === undefined) return

this.taskDispose = this.ctx.task(`* ${smtp_hours} * * *`, async () => {
this.taskDispose = this.ctx.task(`0 ${smtp_hours} * * *`, async () => {
for (const character of await this.ctx.pdb.character.findMany()) {
if (!character.birthday) continue
const today = new Date()
Expand Down

0 comments on commit b82ee8a

Please sign in to comment.