This commit is contained in:
longdayi 2025-03-05 09:40:14 +08:00
commit 6b535597fb
2 changed files with 3 additions and 3 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 && (