Skip to content

Commit

Permalink
Merge pull request #248 from loneil/feature/deleteFile
Browse files Browse the repository at this point in the history
couple model fixes for file storage db record
  • Loading branch information
TimCsaky authored Oct 28, 2021
2 parents 97001ee + 62a6a33 commit 635dbc8
Show file tree
Hide file tree
Showing 7 changed files with 19,979 additions and 19 deletions.
19,985 changes: 19,972 additions & 13 deletions app/frontend/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common-hosted-form-service-frontend",
"version": "1.0.0",
"version": "1.2.0",
"private": true,
"license": "Apache-2.0",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion app/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 app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "common-hosted-form-service-app",
"version": "1.0.0",
"version": "1.2.0",
"private": true,
"license": "Apache-2.0",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion app/src/forms/common/models/tables/fileStorage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { Model } = require('objection');
const { Timestamps } = require('../mixins');
const { Regex } = require('../../constants');
const stamps = require('../jsonSchema').stamps;

class FileStorage extends Model {
class FileStorage extends Timestamps(Model) {
static get tableName() {
return 'file_storage';
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/forms/file/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const service = {
delete: async (id) => {
let trx;
try {
trx = FileStorage.startTransaction();
trx = await FileStorage.startTransaction();
const obj = await service.read(id);

await FileStorage.query(trx)
Expand Down
2 changes: 1 addition & 1 deletion openshift/app.bc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ objects:
value: "${ROUTE_PATH}"
from:
kind: DockerImage
name: docker.io/node:lts-alpine
name: docker.io/node:14.18.1-alpine
type: Docker
successfulBuildsHistoryLimit: 3
parameters:
Expand Down

0 comments on commit 635dbc8

Please sign in to comment.