moar logs
This commit is contained in:
1 parent
70cb07ee27
commit
44c83d3b33
9 files changed
+113
-22
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user