Ghost
New
pippinmole
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
main
76
branches
Go to file
t
Code
ghost
apps
api
src
lib
issues
touch-issue.ts
api: put pure code under lib/ in folders named for what they hold
297713a
5 days ago
12 lines · 388 B
1
import
{
schema
}
from
'
@ghost/db
'
;
2
import
{
eq
}
3
4
import
type
{
Executor
5
6
/**
Marks an issue or pull request as changed, for lists sorted by recent activity.
*/
7
export
function
touchIssue
(
db
8
return
db
9
.
update
(
schema
.
issue
10
.
set
(
{
updatedAt
:
11
.
where
(
eq
(
schema
12
}
from
'
drizzle-orm
'
;
}
from
'
../db/executor.js
'
;
:
Executor
,
issueId
:
string
)
{
)
new
Date
()
}
)
.
issue
.
id
,
issueId
))
;