mirror of
https://github.com/syuilo/ai.git
synced 2024-12-22 08:21:08 +00:00
Fix bug
This commit is contained in:
parent
8886a24f16
commit
2435139898
|
@ -48,7 +48,7 @@ export default class CoreModule implements IModule {
|
|||
const m = now.getMonth();
|
||||
const d = now.getDate();
|
||||
// Misskeyの誕生日は 2018-06-16 のような形式
|
||||
const today = `${zeroPadding(m + 1, 2)}-${d}`;
|
||||
const today = `${zeroPadding(m + 1, 2)}-${zeroPadding(d, 2)}`;
|
||||
|
||||
const birthFriends = this.ai.friends.find({
|
||||
'user.profile.birthday': { '$regex': new RegExp('-' + today + '$') }
|
||||
|
|
Loading…
Reference in a new issue