1時間に

This commit is contained in:
tamaina 2023-01-22 17:14:05 +00:00
parent 8a6750278e
commit 0cffe60abc
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ stream.on('emojiDeleted', emojiData => {
export async function fetchCustomEmojis() {
const now = Date.now();
const lastFetchedAt = miLocalStorage.getItem('lastEmojisFetchedAt');
if (lastFetchedAt && (now - parseInt(lastFetchedAt)) < 1000 * 60) return;
if (lastFetchedAt && (now - parseInt(lastFetchedAt)) < 1000 * 60 * 60) return;
const res = await apiGet('emojis', {});