From 648ccd60fc05b0050914b1f280de6f9c42e75685 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 3 Jan 2021 15:04:20 +0900 Subject: [PATCH] fix birthday detection --- src/modules/birthday/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/birthday/index.ts b/src/modules/birthday/index.ts index bd04578..2a788a7 100644 --- a/src/modules/birthday/index.ts +++ b/src/modules/birthday/index.ts @@ -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 => {