mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: cleanup
This commit is contained in:
@@ -15,7 +15,6 @@ import { Readable, Stream } from 'stream';
|
||||
export enum AttachmentCreatedByRef {
|
||||
User = 'User',
|
||||
Subscriber = 'Subscriber',
|
||||
System = 'System',
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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': '',
|
||||
// },
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user