feat: sync stacks (#19629)

This commit is contained in:
Jason Rasmussen 2025-06-30 15:26:41 -04:00 committed by GitHub
parent 095ace8687
commit 181a7e115f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 646 additions and 62 deletions

View file

@ -689,6 +689,34 @@ where
order by
"updateId" asc
-- SyncRepository.stack.getDeletes
select
"id",
"stackId"
from
"stacks_audit"
where
"userId" = $1
and "deletedAt" < now() - interval '1 millisecond'
order by
"id" asc
-- SyncRepository.stack.getUpserts
select
"id",
"createdAt",
"updatedAt",
"primaryAssetId",
"ownerId",
"updateId"
from
"asset_stack"
where
"ownerId" = $1
and "updatedAt" < now() - interval '1 millisecond'
order by
"updateId" asc
-- SyncRepository.user.getDeletes
select
"id",