Skip to content

Commit f12d22b

Browse files
committed
[DAPS-1515] Run prettier
1 parent e38b8c0 commit f12d22b

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

core/database/foxx/api/data_router.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ function recordCreate(client, record, result) {
9797
if (findResult.ok) {
9898
var repository = findResult.value;
9999
var dataOpsResult = RepositoryOps.supportsDataOperations(repository);
100-
100+
101101
if (dataOpsResult.ok && !dataOpsResult.value) {
102102
throw [
103103
g_lib.ERR_INVALID_OPERATION,
104104
"Data uploads not supported for metadata-only repository",
105105
{
106106
repo_type: repository.type,
107-
repo_id: repository.data._id
108-
}
107+
repo_id: repository.data._id,
108+
},
109109
];
110110
}
111111
}

core/database/foxx/api/support.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
"use strict";
22

33
const joi = require("joi");
4+
const { RepositoryOps } = require("./repository/operations");
5+
const { RepositoryType } = require("./repository/types");
46

57
module.exports = (function () {
68
var obj = {};
79

810
obj.db = require("@arangodb").db;
911
obj.graph = require("@arangodb/general-graph")._graph("sdmsg");
10-
11-
// Import repository type system
12-
const { RepositoryOps } = require("./repository/operations");
13-
const { RepositoryType } = require("./repository/types");
1412

1513
obj.PERM_RD_REC = 0x0001; // Read record info (description, keywords, details)
1614
obj.PERM_RD_META = 0x0002; // Read structured metadata
@@ -921,13 +919,13 @@ module.exports = (function () {
921919
if (findResult.ok) {
922920
var repository = findResult.value;
923921
var dataOpsResult = RepositoryOps.supportsDataOperations(repository);
924-
922+
925923
// Skip metadata-only repositories
926924
if (dataOpsResult.ok && !dataOpsResult.value) {
927925
continue;
928926
}
929927
}
930-
928+
931929
return alloc;
932930
}
933931
}
@@ -959,15 +957,15 @@ module.exports = (function () {
959957
if (findResult.ok) {
960958
var repository = findResult.value;
961959
var dataOpsResult = RepositoryOps.supportsDataOperations(repository);
962-
960+
963961
if (dataOpsResult.ok && !dataOpsResult.value) {
964962
throw [
965963
obj.ERR_INVALID_OPERATION,
966964
"Data operations not supported for metadata-only repository",
967965
{
968966
repo_type: repository.type,
969-
repo_id: repository.data._id
970-
}
967+
repo_id: repository.data._id,
968+
},
971969
];
972970
}
973971
}

core/database/foxx/api/tasks.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,16 +321,16 @@ var tasks_func = (function () {
321321
if (findResult.ok) {
322322
var repository = findResult.value;
323323
var dataOpsResult = RepositoryOps.supportsDataOperations(repository);
324-
324+
325325
if (dataOpsResult.ok && !dataOpsResult.value) {
326326
throw [
327327
g_lib.ERR_INVALID_OPERATION,
328328
"Data transfers not supported for metadata-only repository",
329329
{
330330
repo_type: repository.type,
331331
repo_id: repository.data._id,
332-
data_id: data.id
333-
}
332+
data_id: data.id,
333+
},
334334
];
335335
}
336336
}
@@ -533,16 +533,16 @@ var tasks_func = (function () {
533533
if (findResult.ok) {
534534
var repository = findResult.value;
535535
var dataOpsResult = RepositoryOps.supportsDataOperations(repository);
536-
536+
537537
if (dataOpsResult.ok && !dataOpsResult.value) {
538538
throw [
539539
g_lib.ERR_INVALID_OPERATION,
540540
"Data transfers not supported for metadata-only repository",
541541
{
542542
repo_type: repository.type,
543543
repo_id: repository.data._id,
544-
data_id: data.id
545-
}
544+
data_id: data.id,
545+
},
546546
];
547547
}
548548
}

0 commit comments

Comments
 (0)