feat: add editing support to InternalPoster
This commit is contained in:
parent
ecd9a5863c
commit
31f18ba27f
6 changed files with 113 additions and 39 deletions
|
@ -16,6 +16,16 @@ export class Webhooks extends BaseRepository {
|
|||
return entity;
|
||||
}
|
||||
|
||||
async find(id: string): Promise<Webhook | null> {
|
||||
const result = await this.repository.findOne({
|
||||
where: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
|
||||
return result ? this._processEntityFromDB(result) : null;
|
||||
}
|
||||
|
||||
async findByChannelId(channelId: string): Promise<Webhook | null> {
|
||||
const result = await this.repository.findOne({
|
||||
where: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue