Feat: Change update database mecanism to use prisma + fetching each set data

This commit is contained in:
zuma 2025-02-13 18:56:42 +01:00
parent ed8c0a1876
commit 46a038973a
6 changed files with 194 additions and 116 deletions

4
app/lib/logging.ts Normal file
View file

@ -0,0 +1,4 @@
export function logging(message: string) {
const date = new Date()
console.log("[" + date.getFullYear() + "/" + (date.getMonth()+1).toString().padStart(2,'0') + "/" + date.getDate().toString().padStart(2,'0') + " - " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds() +"] " + message)
}