MCPcopy
hub / github.com/adrianhajdin/banking / getTransactionStatus

Function getTransactionStatus

lib/utils.ts:190–196  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

188}
189
190export const getTransactionStatus = (date: Date) => {
191 const today = new Date();
192 const twoDaysAgo = new Date(today);
193 twoDaysAgo.setDate(today.getDate() - 2);
194
195 return date > twoDaysAgo ? "Processing" : "Success";
196};
197
198export const authFormSchema = (type: string) => z.object({
199 // sign up

Callers 1

TransactionsTableFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected