mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 07:34:42 +02:00
fix await
This commit is contained in:
parent
030d734247
commit
b03f08e444
@ -7,7 +7,7 @@ import type {trackType} from '../types';
|
|||||||
|
|
||||||
const albumInfo = async (track: trackType) => {
|
const albumInfo = async (track: trackType) => {
|
||||||
try {
|
try {
|
||||||
return getAlbumInfoPublicApi(track.ALB_ID);
|
return await getAlbumInfoPublicApi(track.ALB_ID);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user