@@ -54,12 +54,12 @@ func NewStoreEnqueuer(cfg codersdk.NotificationsConfig, store Store, helpers tem
54
54
55
55
// Enqueue queues a notification message for later delivery, assumes no structured input data.
56
56
func (s * StoreEnqueuer ) Enqueue (ctx context.Context , userID , templateID uuid.UUID , labels map [string ]string , createdBy string , targets ... uuid.UUID ) (* uuid.UUID , error ) {
57
- return s .EnqueueData (ctx , userID , templateID , labels , nil , createdBy , targets ... )
57
+ return s .EnqueueWithData (ctx , userID , templateID , labels , nil , createdBy , targets ... )
58
58
}
59
59
60
60
// Enqueue queues a notification message for later delivery.
61
61
// Messages will be dequeued by a notifier later and dispatched.
62
- func (s * StoreEnqueuer ) EnqueueData (ctx context.Context , userID , templateID uuid.UUID , labels map [string ]string , data map [string ]any , createdBy string , targets ... uuid.UUID ) (* uuid.UUID , error ) {
62
+ func (s * StoreEnqueuer ) EnqueueWithData (ctx context.Context , userID , templateID uuid.UUID , labels map [string ]string , data map [string ]any , createdBy string , targets ... uuid.UUID ) (* uuid.UUID , error ) {
63
63
metadata , err := s .store .FetchNewMessageMetadata (ctx , database.FetchNewMessageMetadataParams {
64
64
UserID : userID ,
65
65
NotificationTemplateID : templateID ,
@@ -170,7 +170,7 @@ func (*NoopEnqueuer) Enqueue(context.Context, uuid.UUID, uuid.UUID, map[string]s
170
170
return nil , nil
171
171
}
172
172
173
- func (* NoopEnqueuer ) EnqueueData (context.Context , uuid.UUID , uuid.UUID , map [string ]string , map [string ]any , string , ... uuid.UUID ) (* uuid.UUID , error ) {
173
+ func (* NoopEnqueuer ) EnqueueWithData (context.Context , uuid.UUID , uuid.UUID , map [string ]string , map [string ]any , string , ... uuid.UUID ) (* uuid.UUID , error ) {
174
174
// nolint:nilnil // irrelevant.
175
175
return nil , nil
176
176
}
0 commit comments