moar logs

This commit is contained in:
ntr committed 2022-08-30 18:39:22 +10:00
1 parent 70cb07ee27
commit 44c83d3b33
9 files changed
+113 -22

No files matched your search

+13
View File
@@ -1,3 +1,5 @@
import type { Want } from '@prisma/client';
export function logAxiosError(e) {
console.warn({
status: e.response.status,
@@ -11,3 +13,14 @@ export function logAxiosError(e) {
},
});
}
export function wantDetails(want: Want) {
const data = want.data as any;
return {
title: data.title,
release: data.id,
artist: data.artists_sort,
id: want.id
}
}