feat: use postgres for change notification
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user