Skip to content

Commit

Permalink
cleanup: typo, old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Soxasora committed Dec 23, 2024
1 parent b73a0cd commit fb61520
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/resolvers/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export default {
date: async (n, args, { models }) => {
return new Date(n.sortTime)
},
stacked: async (n, args, { me, models }) => { // msats_rewards is already counted in msats_stacked
stacked: async (n, args, { me, models }) => {
const [{ stacked }] = await models.$queryRaw`
SELECT sum(msats_stacked) as stacked
FROM user_stats_days
Expand Down
2 changes: 1 addition & 1 deletion api/typeDefs/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default gql`
nostrPubkey: String
nostrRelays: [String!]
noteAllDescendants: Boolean!
noteSatSummary: Boolean
noteSatSummary: Boolean!
noteCowboyHat: Boolean!
noteDeposits: Boolean!,
noteWithdrawals: Boolean!,
Expand Down
2 changes: 1 addition & 1 deletion lib/webPush.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export async function notifyStreakLost (userId, streak) {
}
}

export async function notifySatSummary (userId, stats) { // WIP
export async function notifySatSummary (userId, stats) {
try {
await sendUserNotification(userId, {
title: 'your daily sat summary is ready',
Expand Down
2 changes: 1 addition & 1 deletion worker/satSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export async function summarizeDailySats ({ data: { userId }, models }) {
})
}
} catch (err) {
console.error('failed to process daily stats', err)
console.error('failed to process daily sat summary', err)
}
}

0 comments on commit fb61520

Please sign in to comment.