File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,24 @@ import {insertNotificationToSupabase} from 'shared/supabase/notifications'
44import { tryCatch } from "common/util/try-catch" ;
55import { Row } from "common/supabase/utils" ;
66
7+ export const createShareNotifications = async ( ) => {
8+ const createdTime = Date . now ( ) ;
9+ const id = `share-${ createdTime } `
10+ const notification : Notification = {
11+ id,
12+ userId : 'todo' ,
13+ createdTime : createdTime ,
14+ isSeen : false ,
15+ sourceType : 'info' ,
16+ sourceUpdateType : 'created' ,
17+ sourceSlug : '/contact' ,
18+ sourceUserAvatarUrl : 'https://firebasestorage.googleapis.com/v0/b/compass-130ba.firebasestorage.app/o/misc%2Ficon-outreach-outstrip-outreach-272151502.jpg?alt=media&token=6d6fcecb-818c-4fca-a8e0-d2d0069b9445' ,
19+ title : 'Give us tips to reach more people' ,
20+ sourceText : '250 members already! Tell us where and how we can best share Compass.' ,
21+ }
22+ return await createNotifications ( notification )
23+ }
24+
725export const createVoteNotifications = async ( ) => {
826 const createdTime = Date . now ( ) ;
927 const id = `vote-${ createdTime } `
You can’t perform that action at this time.
0 commit comments