Ghost
New
phantomknight287
/
saturn
public
The operating system for your freelance business.
Star
0
Fork
0
Code
Issues
0
Pull requests
0
744b078
1
branch
Go to file
t
Code
saturn
src
app
api
organizations
service.ts
feat: here comes the money
442302e
7 months ago
16 lines · 355 B
1
import
{
eq
}
from
'
drizzle-orm
'
2
import
{
db
}
3
import
{
organizations
}
4
5
const
getBySlug
=
async
6
const
[
organization
]
7
.
select
()
8
.
from
(
organizations
)
9
.
where
(
eq
(
organizations
10
11
return
organization
12
}
13
14
export
const
organizationsService
=
15
getBySlug
,
16
}
from
'
@/server/db
'
from
'
@/server/db/schema
'
(
slug
:
string
)
=>
{
=
await
db
.
slug
,
slug
))
{