Nástřel přidávání pizzy

This commit is contained in:
mates committed 2023-06-05 21:14:35 +02:00
1 parent 5fd4edee94
commit 2e80faa6b8
5 files changed
+48 -12

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ const downloadPizzy = async () => {
/**
* Vrátí pizzy z tempu, nebo čerstvě stažené, pokud v tempu nejsou.
*/
export const fetchPizzy = async () => {
export const fetchPizzy = async (): Promise<Pizza[]> => {
const tmpDir = os.tmpdir();
const date_ob = new Date();
const date = ("0" + date_ob.getDate()).slice(-2);