From 2435139898e649563d70290ac7a25c107fef2ea2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 6 Dec 2018 00:12:11 +0900 Subject: [PATCH] Fix bug --- src/modules/core/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index 4220797..ef47c3b 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -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 + '$') }