Skip to content

Commit a37df33

Browse files
committed
simplify get query as there is no transformation needed for the templatevariables
1 parent 97f77e6 commit a37df33

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/component/lib.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,10 @@ export const get = query({
314314
},
315315
returns: v.union(
316316
v.object({
317-
...omit(schema.tables.emails.validator.fields, [
318-
"html",
319-
"text",
320-
"templateVariables",
321-
]),
317+
...omit(schema.tables.emails.validator.fields, ["html", "text"]),
322318
createdAt: v.number(),
323319
html: v.optional(v.string()),
324320
text: v.optional(v.string()),
325-
templateVariables: v.optional(v.string()),
326321
to: v.array(v.string()),
327322
}),
328323
v.null(),
@@ -343,7 +338,6 @@ export const get = query({
343338
createdAt: email._creationTime,
344339
html,
345340
text,
346-
templateVariables: email.templateVariables,
347341
to: Array.isArray(email.to) ? email.to : [email.to],
348342
};
349343
},

0 commit comments

Comments
 (0)