1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-10-01 21:25:37 +08:00
parent c98d453e14
commit 5d2bfccb4b
5 changed files with 14 additions and 15 deletions

View File

@@ -21,9 +21,9 @@ async function getFromDatabase({ artistId }) {
}
// 获取音乐人详情
async function fetch({ artistId }) {
async function fetch({ artistId, debug = false }) {
let result = await dbUtils.query('SELECT count(*) as count FROM artist WHERE artist_id = ?', [artistId]);
if (result[0].count > 0) {
if (result[0].count > 0 && !debug) {
console.log(`数据库中已有数据,跳过 artistId: ${artistId}`);
return;
}