mirror of
https://github.com/syuilo/ai.git
synced 2024-11-14 01:37:59 +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 today = `${zeroPadding(m + 1, 2)}-${zeroPadding(d, 2)}`;
|
||||||
|
|
||||||
const birthFriends = this.ai.friends.find({
|
const birthFriends = this.ai.friends.find({
|
||||||
'user.profile.birthday': { '$regex': new RegExp('-' + today + '$') }
|
'user.birthday': { '$regex': new RegExp('-' + today + '$') }
|
||||||
} as any);
|
} as any);
|
||||||
|
|
||||||
birthFriends.forEach(f => {
|
birthFriends.forEach(f => {
|
||||||
|
|
Loading…
Reference in a new issue