Add missing files in last two commits
This commit is contained in:
parent
81e057b900
commit
d047c460ed
3 changed files with 36 additions and 0 deletions
2
db/migrations/00138_jobtype_compliance_mailer_send.sql
Normal file
2
db/migrations/00138_jobtype_compliance_mailer_send.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- +goose Up
|
||||
ALTER TYPE JobType ADD VALUE 'compliance-mailer-send';
|
||||
19
platform/mailer/mailer.go
Normal file
19
platform/mailer/mailer.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package mailer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/Gleipnir-Technology/bob"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
func ComplianceSend(ctx context.Context, txn bob.Executor, row_id int32) error {
|
||||
compliance_req, err := models.FindComplianceReportRequest(ctx, txn, row_id)
|
||||
if err != nil {
|
||||
return fmt.Errorf("find compliance report: %w", err)
|
||||
}
|
||||
log.Debug().Int32("id", row_id).Str("public_id", compliance_req.PublicID).Msg("working on mailer")
|
||||
return nil
|
||||
}
|
||||
15
ts/view/Signout.vue
Normal file
15
ts/view/Signout.vue
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<template>
|
||||
<p>signing out...</p>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from "vue";
|
||||
import { router } from "@/router";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
|
||||
const session = useSessionStore();
|
||||
onMounted(() => {
|
||||
session.signout().then(() => {
|
||||
router.push("/signin");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue