no message
This commit is contained in:
parent
a87b03262d
commit
3724b2c0a6
3 changed files with 91 additions and 23 deletions
|
|
@ -61,14 +61,8 @@ export class OrganizationController extends Controller {
|
|||
@Get("history")
|
||||
async GetHistory() {
|
||||
const orgRevision = await this.orgRevisionRepository.find({
|
||||
select: [
|
||||
"id",
|
||||
"orgRevisionName",
|
||||
"orgRevisionIsCurrent",
|
||||
"orgRevisionCreatedAt",
|
||||
"orgRevisionIsDraft",
|
||||
],
|
||||
order: { orgRevisionCreatedAt: "DESC" },
|
||||
select: ["id", "orgRevisionName", "orgRevisionIsCurrent", "createdAt", "orgRevisionIsDraft"],
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
// if (!orgRevision) {
|
||||
// return new HttpSuccess([]);
|
||||
|
|
@ -77,7 +71,7 @@ export class OrganizationController extends Controller {
|
|||
orgRevisionId: revision.id,
|
||||
orgRevisionName: revision.orgRevisionName,
|
||||
orgRevisionIsCurrent: revision.orgRevisionIsCurrent,
|
||||
orgRevisionCreatedAt: revision.orgRevisionCreatedAt,
|
||||
orgRevisionCreatedAt: revision.createdAt,
|
||||
orgRevisionIsDraft: revision.orgRevisionIsDraft,
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue