Add option for filing hiatuses
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
import validateInactivity from "./validate.js";
|
||||
|
||||
export async function onRequestPost(context: RequestContext) {
|
||||
const { departments, end, reason, senderTokenId, start } = context.data.body;
|
||||
const { departments, end, hiatus, reason, senderTokenId, start } =
|
||||
context.data.body;
|
||||
|
||||
const validationFailureResponse = validateInactivity(
|
||||
departments,
|
||||
end,
|
||||
hiatus,
|
||||
reason,
|
||||
start,
|
||||
context.data.departments,
|
||||
@ -25,6 +27,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
departments,
|
||||
end,
|
||||
fcm_token: typeof senderTokenId === "string" ? senderTokenId : undefined,
|
||||
hiatus,
|
||||
open: true,
|
||||
reason,
|
||||
start,
|
||||
|
Reference in New Issue
Block a user