Skip to content

Commit 6aa9f1b

Browse files
committed
fix: update method to use object.update etc
1 parent 9a3ae36 commit 6aa9f1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CoCreateFileSystem {
3737
let organization = organizations.get(hostname);
3838
if (!organization) {
3939
let org = await crud.send({
40-
method: 'read.object',
40+
method: 'object.read',
4141
array: 'organizations',
4242
$filter: {
4343
query: [
@@ -86,7 +86,7 @@ class CoCreateFileSystem {
8686
}
8787

8888
let data = {
89-
method: 'read.object',
89+
method: 'object.read',
9090
array: 'files',
9191
$filter: {
9292
query: [
@@ -120,7 +120,7 @@ class CoCreateFileSystem {
120120
src = file['src'];
121121
else {
122122
let fileSrc = await crud.send({
123-
method: 'read.object',
123+
method: 'object.read',
124124
array: file['array'],
125125
object: {
126126
_id: file._id
@@ -207,7 +207,7 @@ class CoCreateFileSystem {
207207
}
208208

209209
crud.send({
210-
method: 'create.object',
210+
method: 'object.create',
211211
array: 'files',
212212
object: defaultFile.object[0],
213213
organization_id

0 commit comments

Comments
 (0)