feat: use postgres for change notification
Some checks failed
Build and release / Release (push) Has been skipped
Build and release / Build (push) Failing after 1m14s
Build and release / update-release-draft (push) Has been skipped

This commit is contained in:
Morten Olsen
2025-12-10 23:21:25 +01:00
parent 3641e86da5
commit 904b0f783e
10 changed files with 274 additions and 43 deletions

View File

@@ -28,6 +28,9 @@ class BaseError extends Error {
}
const createApi = async (runtime: StashRuntime = new StashRuntime()) => {
runtime.documents.on('upserted', (document) => {
console.log(document);
});
const app = fastify().withTypeProvider<ZodTypeProvider>();
app.setValidatorCompiler(validatorCompiler);
app.setSerializerCompiler(serializerCompiler);