Add sync driver for queue messages (#3070)

* Add sync driver for queue messages

* rename moduleRef

* use switch instead
This commit is contained in:
Weiko
2023-12-19 13:30:40 +01:00
committed by GitHub
parent fff51a2d91
commit e799c84233
10 changed files with 83 additions and 23 deletions

View File

@ -15,6 +15,12 @@ export const messageQueueModuleFactory = async (
const driverType = environmentService.getMessageQueueDriverType();
switch (driverType) {
case MessageQueueDriverType.Sync: {
return {
type: MessageQueueDriverType.Sync,
options: {},
};
}
case MessageQueueDriverType.PgBoss: {
const connectionString = environmentService.getPGDatabaseUrl();