🌟 Support for PostgreSQL (#306)

This commit is contained in:
Anton Shepilov
2024-01-13 23:49:34 +03:00
committed by GitHub
parent 81777154af
commit 70c033aabe
38 changed files with 2202 additions and 364 deletions
@@ -25,7 +25,7 @@ export class DriveFileMockClass {
extension: string;
description: string;
tags: string[];
last_modified: string;
last_modified: number;
access_info: MockAccessInformation;
creator: string;
is_directory: boolean;
@@ -81,7 +81,7 @@ describe("The /users API", () => {
//Wait for indexation to happen
await new Promise(r => setTimeout(r, 5000));
let resources = await search("ha");
let resources = await search("ha", platform.workspace.company_id);
expect(resources.length).toBe(2);
resources = await search("bob rabiot");
@@ -285,10 +285,6 @@ describe("The /workspace users API", () => {
expect(response.statusCode).toBe(201);
const resource = response.json()["resource"];
checkUserObject(resource);
workspaceUsersCount = await testDbService.getWorkspaceUsersCountFromDb(workspaceId);
expect(workspaceUsersCount).toBe(5);
});
});