mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 15:38:00 +00:00
fix birthday detection
This commit is contained in:
parent
e6706df8f9
commit
648ccd60fc
|
@ -30,7 +30,7 @@ export default class extends Module {
|
|||
const today = `${zeroPadding(m + 1, 2)}-${zeroPadding(d, 2)}`;
|
||||
|
||||
const birthFriends = this.ai.friends.find({
|
||||
'user.profile.birthday': { '$regex': new RegExp('-' + today + '$') }
|
||||
'user.birthday': { '$regex': new RegExp('-' + today + '$') }
|
||||
} as any);
|
||||
|
||||
birthFriends.forEach(f => {
|
||||
|
|
Loading…
Reference in a new issue