This commit is contained in:
Kyle Fang
2022-04-01 14:53:10 +08:00
parent e3c4a4391c
commit 43a5e9990b

View File

@@ -51,7 +51,7 @@ async function checkUser(chatId: string, token: string) {
}).then((r) => r.json());
for (const notification of notifications) {
const sentRef = admin.database().ref(`/sent/${chatId}/${notification.id}`);
if ((await sentRef.get()).val() !== notification.updated_at) {
if ((await sentRef.get()).val() === notification.updated_at) {
continue;
}
await bot.telegram.sendMessage(