From 9b98843541a5b8107f009f033fc9546d90ec4b5c Mon Sep 17 00:00:00 2001 From: keyan Date: Fri, 5 Apr 2024 19:24:31 -0500 Subject: [PATCH] fix Sub.createdAt -> Sub.created_at generically --- api/resolvers/sub.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/resolvers/sub.js b/api/resolvers/sub.js index ed2f0d18..af25f7dc 100644 --- a/api/resolvers/sub.js +++ b/api/resolvers/sub.js @@ -395,7 +395,8 @@ export default { }, meSubscription: async (sub, args, { me, models }) => { return sub.meSubscription || sub.SubSubscription?.length > 0 - } + }, + createdAt: sub => sub.createdAt || sub.created_at } }