SHG-TV
SHG-TV
NNovu
Created by SHG-TV on 10/24/2024 in #💬│support
Remove In-App by Pattern
yes it is 🙂
4 replies
NNovu
Created by SHG-TV on 10/24/2024 in #💬│support
Step has invalid result
we found, that this error was likly to the wrong spelling in the env-vars NOVU_API_URL and NOVU_SECRET_KEY, after fixing thos everything worked great. strange error message and hard to debug tbh. Additionaly we had to enable the feature flag: IS_WORKFLOW_PREFERENCES_ENABLED to eb able to process the events
5 replies
NNovu
Created by SHG-TV on 10/24/2024 in #💬│support
Step has invalid result
@Pawan Jain maybe this is due to: https://github.com/novuhq/novu/commit/fc5b3cb0b6a66ddd7cdf5e9933310be218d7725f and the error is not shown in the console?
5 replies
NNovu
Created by SHG-TV on 10/24/2024 in #💬│support
Step has invalid result
we found, that this was likly related to the in-app step itself. as when we have removed it, it worked. was there maybe already a fix, which is not included in the docker image?
5 replies
NNovu
Created by SHG-TV on 10/24/2024 in #💬│support
Step has invalid result
No description
5 replies
NNovu
Created by SHG-TV on 10/23/2024 in #💬│support
Does @novu/framework support isOnline/lastTimeOnline/Webhook
@Pawan Jain
6 replies
NNovu
Created by SHG-TV on 10/23/2024 in #💬│support
Does @novu/framework support isOnline/lastTimeOnline/Webhook
we wont need webhook, because we can use the custom step for this btw 🙂
6 replies
NNovu
Created by SHG-TV on 10/23/2024 in #💬│support
Does @novu/framework support isOnline/lastTimeOnline/Webhook
are you sure, that this can be used to determine if the user is online or when he/she was online the last time? For me its seems more like data related to the in-app notification. I am looking for the conditions section within the ui and which can be updated by @novu/node .updateOnlineStatus
6 replies
PPrisma
Created by NicoFish on 10/9/2024 in #help-and-questions
Extending client not typesafe
when your extension is valid yes. I think you confused the purpose of the method. The $extends method will return a seperate client and will not change the current one.
7 replies
PPrisma
Created by NicoFish on 10/9/2024 in #help-and-questions
Extending client not typesafe
we are currently using the following pattern:
@Injectable()
export class PrismaProvider
extends PrismaClient
implements OnModuleInit, OnModuleDestroy {
constructor(
readonly config: ConfigService, // TODO: check if this can be private?!
readonly cls: ClsService, // TODO: check if this can be private?!
@Inject(CACHE_MANAGER)
private cacheManager: Cache,
) {
const url = new URL(config.getOrThrow<string>('DATABASE_URL'));
url.searchParams.append('connection_limit', '80'); // should be the number of maximal concurrent requests => TODO: maybe replace with env

super({
datasources: {
db: {
url: url.toString(),
},
},
});
}

withExtensions() {
return this.$extends(prismaExistsFnExtension)
.$extends(cacheExtension({ cache: this.cacheManager })) // this may require to use Prisma.Args<PrismaService['file'], 'findMany'>['include'] for several places
.$extends(prismaSessionAuthExtension(this))
.$extends(prismaAddressGeocodeExtension(this));
}
}

const buildPrismaService = () => {
return class {
constructor(provider: PrismaProvider) {
return provider.withExtensions();
}
} as Type<ReturnType<PrismaProvider['withExtensions']>>;
};

@Injectable()
export class PrismaService extends buildPrismaService() {
constructor(private readonly provider: PrismaProvider) {
super(provider);
}
}
@Injectable()
export class PrismaProvider
extends PrismaClient
implements OnModuleInit, OnModuleDestroy {
constructor(
readonly config: ConfigService, // TODO: check if this can be private?!
readonly cls: ClsService, // TODO: check if this can be private?!
@Inject(CACHE_MANAGER)
private cacheManager: Cache,
) {
const url = new URL(config.getOrThrow<string>('DATABASE_URL'));
url.searchParams.append('connection_limit', '80'); // should be the number of maximal concurrent requests => TODO: maybe replace with env

super({
datasources: {
db: {
url: url.toString(),
},
},
});
}

withExtensions() {
return this.$extends(prismaExistsFnExtension)
.$extends(cacheExtension({ cache: this.cacheManager })) // this may require to use Prisma.Args<PrismaService['file'], 'findMany'>['include'] for several places
.$extends(prismaSessionAuthExtension(this))
.$extends(prismaAddressGeocodeExtension(this));
}
}

const buildPrismaService = () => {
return class {
constructor(provider: PrismaProvider) {
return provider.withExtensions();
}
} as Type<ReturnType<PrismaProvider['withExtensions']>>;
};

@Injectable()
export class PrismaService extends buildPrismaService() {
constructor(private readonly provider: PrismaProvider) {
super(provider);
}
}
7 replies
PPrisma
Created by NicoFish on 10/9/2024 in #help-and-questions
Extending client not typesafe
7 replies
NNovu
Created by SHG-TV on 1/18/2024 in #💬│support
Updates for ARM architecture?
@Pawan Jain @Paweł T. can you review https://github.com/novuhq/novu/pull/5139 please. There hasnt been an update for quite a while. Thank you 🙂
26 replies
NNovu
Created by SHG-TV on 4/6/2024 in #💬│support
Novu Unsubscribe Link in E-Mail
@Tomer Barnea Hi, sorry for the revisit of this discussion. We wanted to ask if we can provide any input/support/pr/resources on this topic, because we have to implement this shortly and think it would be best suited to use a solution within novu itself.
22 replies
NNovu
Created by SHG-TV on 4/6/2024 in #💬│support
Novu Unsubscribe Link in E-Mail
sounds great 🙂
22 replies
NNovu
Created by SHG-TV on 4/6/2024 in #💬│support
Novu Unsubscribe Link in E-Mail
Ok, thanks for the information. I think you should revisit this later on, because this is a "Pain Point" for many people i guess and would be an additional USP for Novu itself in the future. Thank you anyways and have a nice day. @Pawan Jain @Tomer Barnea
22 replies
NNovu
Created by SHG-TV on 4/6/2024 in #💬│support
Novu Unsubscribe Link in E-Mail
Thank you very much. 🙂
22 replies
NNovu
Created by SHG-TV on 4/6/2024 in #💬│support
Novu Unsubscribe Link in E-Mail
@Pawan Jain @Tomer Barnea any updates?
22 replies
NNovu
Created by SHG-TV on 4/6/2024 in #💬│support
Novu Unsubscribe Link in E-Mail
@Pawan Jain any updates or a Issue/PR where I can see the progress on this?
22 replies
NNovu
Created by SHG-TV on 4/18/2024 in #💬│support
Used variables in step are not shown
@Pawan Jain yes, and could therefore not be assigned as required variable (which we want to use) our current workaround is to place a hidden div inside😇 => which should not be a way to solve this forever 🙂
12 replies
NNovu
Created by SHG-TV on 4/18/2024 in #💬│support
Used variables in step are not shown
in short we have a digest and a non-digest version of this step in place, but no variables in neigher of them are reconized
12 replies