From db4f5b18d0acefb64e9fe13a9d1537a16cd4cb07 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Thu, 30 Nov 2017 21:30:16 +0100 Subject: [PATCH] all DBDocuments are issuers --- app/lib/dal/sqliteDAL/DocumentDAL.ts | 2 +- app/lib/dal/sqliteDAL/SandBox.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/dal/sqliteDAL/DocumentDAL.ts b/app/lib/dal/sqliteDAL/DocumentDAL.ts index d2097d7f0..e5ce3c562 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 09431c3aa..d8e9f3d96 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() -- GitLab