Skip to content

Commit

Permalink
sync(service): 根据setting配置项决定是否需要登录上传针对直接调用api
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 19, 2024
1 parent 8bfe99c commit 03b16f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/controllers/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function checkUploadAuthRequired(env) {
.first();

// 直接返回布尔值
return setting?.value === true;
return setting?.value === 'true';
} catch (error) {
console.error('Error checking upload auth setting:', error);
// 默认需要认证,确保安全
Expand Down

0 comments on commit 03b16f6

Please sign in to comment.