fix: cleanup

This commit is contained in:
abdou6666
2025-04-11 18:42:59 +01:00
parent d504e6b61c
commit 4ff92953eb
4 changed files with 0 additions and 32 deletions

View File

@@ -15,7 +15,6 @@ import { Readable, Stream } from 'stream';
export enum AttachmentCreatedByRef {
User = 'User',
Subscriber = 'Subscriber',
System = 'System',
}
/**

View File

@@ -331,8 +331,6 @@ export default abstract class ChannelHandler<
return attachment.url;
} else {
return buildURL(config.apiBaseUrl, `/webhook/${name}/not-found`);
// throw new TypeError('Unable to resolve the attachment public URL.');
}
}

View File

@@ -47,25 +47,6 @@ export class SettingService extends BaseService<Setting> {
if (count === 0) {
await this.seeder.seed(data);
}
// const imagePath = path.join(process.cwd(), 'assets', 'hexavatar.png');
// const imageBuffer = fs.readFileSync(imagePath);
// await this.attachmentService.store(imageBuffer, {
// access: AttachmentAccess.Public,
// name: 'hexavatar.png',
// createdBy: 'system',
// size: imageBuffer.length,
// type: 'png',
// createdByRef: AttachmentCreatedByRef.System,
// resourceRef: AttachmentResourceRef.SettingAttachment,
// channel: {
// 'web-channel': '',
// 'console-channel': '',
// 'discord-channel': '',
// 'whatsapp-channel': '',
// },
// });
}
/**

View File

@@ -73,13 +73,3 @@
.sc-message--content.received .sc-message--file a:hover {
color: #0c0c0c;
}
// .error-message {
// margin: 0;
// padding: 10px 0;
// text-align: center;
// color: #666;
// font-style: italic;
// width: 100%;
// display: block;
// }