Skip to content

Commit

Permalink
Merge pull request #418 from AliceO2Group/new--NPM
Browse files Browse the repository at this point in the history
New  npm
  • Loading branch information
DimitrySteenkamer authored Oct 1, 2021
2 parents 4d2595f + c3a8c49 commit 46ffb2c
Show file tree
Hide file tree
Showing 7 changed files with 363 additions and 6 deletions.
357 changes: 357 additions & 0 deletions go-api-client/go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/public/views/About/Overview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import table from '../../../components/Table/index.js';
const aboutOverview = (model) => {
const data = [
{ type: 'Bookkeeping', version: '1', hostname: 'localhost', port: '4000' },
{ type: 'NPM', version: '0.17.8', hostname: '', port: '' },
{ type: 'NPM', version: '0.17.9', hostname: '', port: '' },
];

const aboutColumns = {
Expand Down
2 changes: 1 addition & 1 deletion lib/usecases/flp/CreateFlpUseCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CreateFlpUseCase {
const { runNumber } = body;

const flp = await TransactionHelper.provide(async () => {
body.userId = dto.session.id || null;
body.userId = dto?.session?.id || 0;

if (runNumber) {
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/usecases/flp/UpdateFlpUseCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class UpdateFlpUseCase {
const { nTimeframes, bytesProcessed, bytesEquipmentReadOut, bytesRecordingReadOut, bytesFairMQReadOut } = body;

return await TransactionHelper.provide(async () => {
body.userId = dto.session.id || null;
body.userId = dto?.session?.id || 0;

const runId = await new GetRunByRunNumberUseCase()
.execute({ params: { runNumber } });
Expand Down
2 changes: 1 addition & 1 deletion lib/usecases/log/CreateLogUseCase.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CreateLogUseCase {
const { parentLogId, tags, runNumbers } = body;

const log = await TransactionHelper.provide(async () => {
body.userId = dto.session.id || null;
body.userId = dto?.session?.id || 0;

if (parentLogId) {
const parentLog = await new GetLogUseCase().execute({ params: { logId: parentLogId } });
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aliceo2/bookkeeping",
"version": "0.17.8",
"version": "0.17.9",
"author": "CERN",
"license": "GPL-3.0",
"scripts": {
Expand Down

0 comments on commit 46ffb2c

Please sign in to comment.