fix birthday detection

This commit is contained in:
syuilo 2021-01-03 15:04:20 +09:00
parent e6706df8f9
commit 648ccd60fc

View file

@ -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 => {