makeLookup: Allow for key of zero
This commit is contained in:
parent
a769402c0c
commit
12c44d40a8
6 changed files with 34 additions and 3 deletions
|
@ -180,6 +180,7 @@ const dataInterface: ServerInterface = {
|
|||
getAllStickerPacks,
|
||||
getAllStickers,
|
||||
getRecentStickers,
|
||||
clearAllErrorStickerPackAttempts,
|
||||
|
||||
updateEmojiUsage,
|
||||
getRecentEmojis,
|
||||
|
@ -3465,6 +3466,13 @@ async function updateStickerPackStatus(
|
|||
}
|
||||
);
|
||||
}
|
||||
async function clearAllErrorStickerPackAttempts(): Promise<void> {
|
||||
const db = getInstance();
|
||||
|
||||
await db.run(
|
||||
"UPDATE sticker_packs SET downloadAttempts = 0 WHERE status = 'error';"
|
||||
);
|
||||
}
|
||||
async function createOrUpdateSticker(sticker: StickerType) {
|
||||
const db = getInstance();
|
||||
const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue