mirror of https://github.com/certd/certd
chore:
parent
1ece0915f1
commit
22eb84f944
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { inject, ref, watch } from "vue";
|
import { inject, ref, watch } from "vue";
|
||||||
import { CertApplyPluginNames } from "/@/constants";
|
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: "CertDomainsGetter",
|
name: "CertDomainsGetter",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { Provide, Scope, ScopeEnum } from "@midwayjs/core";
|
import {Provide, Scope, ScopeEnum} from "@midwayjs/core";
|
||||||
import { BaseService, CodeException, Constants, PageReq } from "@certd/lib-server";
|
import {BaseService, CodeException, Constants, PageReq} from "@certd/lib-server";
|
||||||
import { InjectEntityModel } from "@midwayjs/typeorm";
|
import {InjectEntityModel} from "@midwayjs/typeorm";
|
||||||
import { Repository } from "typeorm";
|
import {MoreThan, Repository} from "typeorm";
|
||||||
import { CertInfoEntity } from "../entity/cert-info.js";
|
import {CertInfoEntity} from "../entity/cert-info.js";
|
||||||
import { utils } from "@certd/basic";
|
import {utils} from "@certd/basic";
|
||||||
import { CertInfo, CertReader } from "@certd/plugin-cert";
|
import {CertInfo, CertReader} from "@certd/plugin-cert";
|
||||||
|
|
||||||
export type UploadCertReq = {
|
export type UploadCertReq = {
|
||||||
id?: number;
|
id?: number;
|
||||||
|
@ -107,6 +107,7 @@ export class CertInfoService extends BaseService<CertInfoEntity> {
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
userId,
|
userId,
|
||||||
|
expiresTime: MoreThan(new Date().getTime())
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
//遍历查找
|
//遍历查找
|
||||||
|
|
Loading…
Reference in New Issue