diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-25 12:17:11 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-28 21:31:40 -0400 |
| commit | 788e59f046f80cb16c0098052722738109eea772 (patch) | |
| tree | af30305ebd5ffcb2e54cfea7807735761be427eb /packages/backend/src/core/WebhookTestService.ts | |
| parent | clear federatedInstanceCache when meta host lists change (diff) | |
| download | sharkey-788e59f046f80cb16c0098052722738109eea772.tar.gz sharkey-788e59f046f80cb16c0098052722738109eea772.tar.bz2 sharkey-788e59f046f80cb16c0098052722738109eea772.zip | |
fix type errors caused by new User, Note, and Instance fields
Diffstat (limited to 'packages/backend/src/core/WebhookTestService.ts')
| -rw-r--r-- | packages/backend/src/core/WebhookTestService.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/core/WebhookTestService.ts b/packages/backend/src/core/WebhookTestService.ts index 2f8cfea7f7..afd011c410 100644 --- a/packages/backend/src/core/WebhookTestService.ts +++ b/packages/backend/src/core/WebhookTestService.ts @@ -63,6 +63,7 @@ function generateDummyUser(override?: Partial<MiUser>): MiUser { emojis: [], score: 0, host: null, + instance: null, inbox: null, sharedInbox: null, featured: null, @@ -114,10 +115,13 @@ function generateDummyNote(override?: Partial<MiNote>): MiNote { channelId: null, channel: null, userHost: null, + userInstance: null, replyUserId: null, replyUserHost: null, + replyUserInstance: null, renoteUserId: null, renoteUserHost: null, + renoteUserInstance: null, updatedAt: null, processErrors: [], ...override, @@ -449,6 +453,7 @@ export class WebhookTestService { isAdmin: false, isModerator: false, isSystem: false, + instance: undefined, ...override, }; } |