Im pretty sure this is easily solveable but I can"t call any database functions in my repository services because they are assumed to be client side and I can't add use server to the top because it says you can only export async functions.
Is there anyway for me to be able to do this and have my effect service run on the server?
Right now my work around is I created a server-db.ts database actions file thats just a wrapper around the existing drizzle database calls, then put those in a DatabaseService so I can require it as a dependency in my other services. Whats the better way to do this?