Skip to content

Commit

Permalink
api: fix tests broken by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Moldovan, Georgia committed Apr 11, 2022
1 parent 6bcd0f9 commit bfd9f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions api/src/service/domain/document/document_share.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Ctx } from "lib/ctx";
import * as Result from "../../../result";
import { ServiceUser } from "../organization/service_user";
import { UserRecord } from "../organization/user_record";
import { StoredDocument, UploadedDocument } from "./document";
import { DocumentReference, StoredDocument, UploadedDocument } from "./document";
import { RequestData, shareDocument } from "./document_share";
import { Workflowitem } from "../workflow/workflowitem";
import { NotAuthorized } from "../errors/not_authorized";
Expand Down Expand Up @@ -62,14 +62,14 @@ const documentFileName = "name";
const organization = "organization";
const organizationUrl = "url";

const documents: StoredDocument[] = [
const documents: DocumentReference[] = [
{
id: documentId,
hash: documentHash,
fileName: documentFileName,
},
];
const documentInfo: DocumentUploaded.Document = {
const documentInfo: StoredDocument = {
id: documentId,
fileName: documentFileName,
organization,
Expand Down
4 changes: 2 additions & 2 deletions api/src/service/domain/document/document_share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import * as Workflowitem from "../workflow/workflowitem";
import { NotAuthorized } from "../errors/not_authorized";
import { PreconditionError } from "../errors/precondition_error";
import logger from "lib/logger";
import * as DocumentUploaded from "../document/document_uploaded";
import { StoredDocument } from "./document";

type Base64String = string;

Expand All @@ -33,7 +33,7 @@ interface Repository {
subprojectId: string,
workflowitemId: string,
): Promise<Result.Type<Workflowitem.Workflowitem>>;
getDocumentInfo(docId: string): Promise<Result.Type<DocumentUploaded.Document | undefined>>;
getDocumentInfo(docId: string): Promise<Result.Type<StoredDocument | undefined>>;
}

export async function shareDocument(
Expand Down

0 comments on commit bfd9f40

Please sign in to comment.