From efa4073732bf06a73af1e6da90ecd9fc36030c28 Mon Sep 17 00:00:00 2001 From: "andre.borges" Date: Tue, 23 Nov 2021 13:41:30 -0300 Subject: [PATCH] Arquivo faltante adicionado --- src/utils/certidao.utils.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/utils/certidao.utils.ts diff --git a/src/utils/certidao.utils.ts b/src/utils/certidao.utils.ts new file mode 100644 index 0000000..e4fb79a --- /dev/null +++ b/src/utils/certidao.utils.ts @@ -0,0 +1,11 @@ +import { getUnixTime } from 'date-fns'; + +import { Situacao } from '../enums/situacao.enum'; +import { CertidaoNegativa } from '../interfaces'; + +export function certidaoResult(situacao: Situacao): CertidaoNegativa { + return { + situacao, + dataEmissao: getUnixTime(new Date()), + }; +}