diff --git a/app/lib/dal/sqliteDAL/DocumentDAL.ts b/app/lib/dal/sqliteDAL/DocumentDAL.ts index d2097d7f025f31ee507e1b83051bfd36ca3f2f55..e5ce3c562c98d6f3830523d06a1b9fe67eb846b8 100644 --- a/app/lib/dal/sqliteDAL/DocumentDAL.ts +++ b/app/lib/dal/sqliteDAL/DocumentDAL.ts @@ -1,3 +1,3 @@ export interface DBDocument { - issuers?: string[] + issuers: string[] } \ No newline at end of file diff --git a/app/lib/dal/sqliteDAL/SandBox.ts b/app/lib/dal/sqliteDAL/SandBox.ts index 09431c3aada77ab98f4282737d0270eb5be85ff3..d8e9f3d96c7fa07438baf8cca9b117a549f63232 100644 --- a/app/lib/dal/sqliteDAL/SandBox.ts +++ b/app/lib/dal/sqliteDAL/SandBox.ts @@ -14,7 +14,7 @@ export class SandBox<T extends DBDocument> { async acceptNewSandBoxEntry(element:T, pubkey:string) { // Accept any document which has the exception pubkey (= the node pubkey) - if (element.issuers !== undefined && element.issuers.indexOf(pubkey) !== -1) { + if (element.issuers.indexOf(pubkey) !== -1) { return true; } const elements = await this.findElements()