Skip to content

Commit

Permalink
Merge pull request #207 from MichaelChung123/schema-response
Browse files Browse the repository at this point in the history
Schema Response Change
  • Loading branch information
jujaga authored Jul 8, 2021
2 parents 3ad2b3c + 201d9e2 commit e068eda
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 136 deletions.
134 changes: 0 additions & 134 deletions app/frontend/src/components/forms/manage/CurrentDraft.vue

This file was deleted.

1 change: 0 additions & 1 deletion app/src/docs/v1.api-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,6 @@ components:
format: uuid
description: ID of the FormVersion this submission is for.
example: a675ab2a-1e88-4fb5-88f9-c7cb051a18b2
- $ref: "#/components/schemas/FormSchema"
- $ref: "#/components/schemas/TimeStampUserData"
FormRoleUser:
type: object
Expand Down
2 changes: 1 addition & 1 deletion app/src/forms/common/models/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class FormVersionDraft extends Timestamps(Model) {
},
orderDescending(builder) {
builder.orderBy('updatedAt', 'desc');
}
},
};
}

Expand Down
1 change: 1 addition & 0 deletions app/src/forms/form/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ const service = {
listDrafts: async (formId, params) => {
await service.readForm(formId, queryUtils.defaultActiveOnly(params));
return FormVersionDraft.query()
.select('id', 'formId', 'formVersionId', 'createdBy', 'createdAt', 'updatedBy', 'updatedAt')
.where('formId', formId)
.modify('filterFormVersionId', params.formVersionId)
.modify('orderDescending');
Expand Down

0 comments on commit e068eda

Please sign in to comment.