fix type error
This commit is contained in:
parent
39fba74dd1
commit
fef9ebfe06
2 changed files with 5 additions and 1 deletions
|
|
@ -53,6 +53,10 @@ export class InboxProcessorService {
|
|||
@bindThis
|
||||
public async process(job: Bull.Job<InboxJobData>): Promise<string> {
|
||||
const signature = 'version' in job.data.signature ? job.data.signature.value : job.data.signature;
|
||||
if (Array.isArray(signature)) {
|
||||
// RFC 9401はsignatureが配列になるが、とりあえずエラーにする
|
||||
throw new Error('signature is array');
|
||||
}
|
||||
const activity = job.data.activity;
|
||||
|
||||
//#region Log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue