This commit is contained in:
Rao 2025-03-05 09:37:45 +08:00
parent a89bab599c
commit 7d21f45eca
3 changed files with 4 additions and 4 deletions

View File

@ -55,12 +55,12 @@ export class InitService {
}, },
}); });
this.logger.log(`Created new taxonomy: ${taxonomy.name}`); this.logger.log(`Created new taxonomy: ${taxonomy.name}`);
} else { } else if(process.env.NODE_ENV === 'development'){
// Check for differences and update if necessary // Check for differences and update if necessary
const differences = Object.keys(taxonomy).filter( const differences = Object.keys(taxonomy).filter(
(key) => taxonomy[key] !== existingTaxonomy[key], (key) => taxonomy[key] !== existingTaxonomy[key],
); );
if (differences.length > 0) { if (differences.length > 0) {
await db.taxonomy.update({ await db.taxonomy.update({
where: { id: existingTaxonomy.id }, where: { id: existingTaxonomy.id },

View File

@ -214,7 +214,7 @@ export default function MindEditor({ id }: { id?: string }) {
multiple multiple
/> />
</Form.Item> </Form.Item>
{id ? <JoinButton></JoinButton> : <></>} {post && id ? <JoinButton></JoinButton> : <></>}
</div> </div>
<div> <div>
{canEdit && ( {canEdit && (

View File

@ -100,7 +100,7 @@ server {
# 仅供内部使用 # 仅供内部使用
internal; internal;
# 代理到认证服务 # 代理到认证服务
proxy_pass http://host.docker.internal:3000/auth/file; proxy_pass http://host.docker.internal:3001/auth/file;
# 请求优化:不传递请求体 # 请求优化:不传递请求体
proxy_pass_request_body off; proxy_pass_request_body off;