Skip to content

Commit

Permalink
fix: restore lastManualStatus with null message
Browse files Browse the repository at this point in the history
fixes #5
  • Loading branch information
flotwig committed May 29, 2020
1 parent 9410a1f commit 3397491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type GitHubUser = {

export type GitHubUserStatus = {
emoji: string
message: string
message: string | null
// organizationId: string
// limitedAvailability: boolean
// expiresAt: string
Expand Down Expand Up @@ -73,7 +73,7 @@ export function create({ apiUrl }: GitHubOpts) {

setUserStatus: (accessToken, { emoji, message }: Partial<GitHubUserStatus>): Promise<GitHubUserStatus> => {
return (send(accessToken, `mutation {
changeUserStatus(input: { emoji: "${escapeString(emoji)}", message: "${escapeString(message)}" }) {
changeUserStatus(input: { emoji: "${emoji}", message: "${message ? escapeString(message) : message}" }) {
status {
emoji
message
Expand Down

0 comments on commit 3397491

Please sign in to comment.