checkpoint

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-19 18:36:31 +02:00
parent cb0a61cf6e
commit 00f694f906
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
5 changed files with 10 additions and 6 deletions

View File

@ -9513,7 +9513,7 @@ packages:
dev: false
file:projects/server.tgz_6c259fadfeb3a4b20890aefe87070b8b:
resolution: {integrity: sha512-FGh0R+fgnIuNcoSfPKeIXVZuNrlspS3l7hwwb/pJbyHQ/ao/mETg/xyDtFO53czcAIPCYt43i/de/OOGF0j3Lw==, tarball: file:projects/server.tgz}
resolution: {integrity: sha512-Bpc8oo27XWe+uKFoDgS9nnkZF4A9rzcNq/IB1M6u0V4HUOfA/HW8XrdJ3Y2heEWev4B9CGuJ0j6QWq6Usm8lHg==, tarball: file:projects/server.tgz}
id: file:projects/server.tgz
name: '@rush-temp/server'
version: 0.0.0
@ -9526,7 +9526,10 @@ packages:
eslint-plugin-import: 2.23.4_eslint@7.32.0
eslint-plugin-node: 11.1.0_eslint@7.32.0
eslint-plugin-promise: 4.3.1
ts-node: 10.2.1_c780171742f6906a053a603dfa210a4e
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'
- '@typescript-eslint/parser'
- supports-color
- typescript

View File

@ -4,5 +4,3 @@ ACCOUNTS_URL=/account
UPLOAD_URL=/upload
LOGIN_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InJvc2FtdW5kQGhjLmVuZ2luZWVyaW5nIiwid29ya3NwYWNlIjoid3MxIn0.crxqT7QUkpZiTmmxouB40LpMwK2CfTf76XqPFWIMyic
LOGIN_ENDPOINT=ws://localhost:3333
X=ZfVAdSSnw9myvd70

View File

@ -19,8 +19,8 @@
.container {
user-select: none;
span {
margin-left: .75rem;
font-size: .75rem;
margin-left: .75em;
font-size: .75em;
color: var(--theme-content-accent-color);
}
}

View File

@ -67,6 +67,7 @@ class MongoStorage implements ServerStorage {
options?: FindOptions<T>
): Promise<FindResult<T>> {
const domain = this.hierarchy.getDomain(_class)
console.log('findAll', _class, domain, query)
if (domain === DOMAIN_MODEL) return await this.modeldb.findAll(_class, query, options)
return await this.db.collection(domain).find<T>(translateQuery(query)).toArray()
}

View File

@ -5,6 +5,7 @@
"author": "Anticrm Platform Contributors",
"license": "EPL-2.0",
"scripts": {
"start": "ts-node src/__start.ts",
"build": "heft build",
"lint:fix": "eslint --fix src"
},
@ -17,7 +18,8 @@
"eslint-plugin-promise":"4",
"eslint-plugin-node":"11",
"eslint":"^7.32.0",
"@types/ws":"^7.4.7"
"@types/ws":"^7.4.7",
"ts-node":"^10.2.1"
},
"dependencies": {
"@anticrm/core": "~0.6.10",