aboutsummaryrefslogtreecommitdiffstats
path: root/url
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-24 21:50:56 -0700
committerAdam Soltys <[email protected]>2026-08-24 21:50:56 -0700
commit14817c69079cd4cf92b0e7a0e630e68d4c8211c0 (patch)
tree9e427b7e12d5f30ea21027aa5c8fc7fea4eeffd8 /url
parentc131fe1f6d64d141f8c71397f3776ac43795a17c (diff)
downloadcoinosv3-14817c69079cd4cf92b0e7a0e630e68d4c8211c0.tar.gz
coinosv3-14817c69079cd4cf92b0e7a0e630e68d4c8211c0.zip
Every face is a door: note-row avatars open the author's profile again — the thread view had them inert, and even in the feed a tap on the picture now means the person, not the post
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'url')
0 files changed, 0 insertions, 0 deletions
ous revision' href='/coinos-server.git/blame/routes/shopify.js?id=fb45ea1f665c5fc750e1bd09e3cc23be9c695133'>^
58e3d523 ^

13f3c21b ^
58e3d523 ^
948efb0f ^
e2c63364 ^
ea0a0b99 ^





b67ca07b ^
ea0a0b99 ^


b67ca07b ^


ea0a0b99 ^

27fa1e54 ^
ea0a0b99 ^



27fa1e54 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
                      
                            
                                   










                                                                       

                                                                   
                                                         
                                      
 
       





                                                                                    
                                                        


                  


                                                                      

              
 



                                                            
  
import got from "got";
import { g } from "$lib/db";
import { err } from "$lib/logging";

let query = `mutation orderMarkAsPaid($input: OrderMarkAsPaidInput!) { 
  orderMarkAsPaid(input: $input) { 
    order { id } 
    userErrors { 
      field
      message
    }
  }
}`;

export default async ({ body: { hash }, params: { id } }, res) => {
  let p = await g(`payment:${hash}`);
  if (typeof p === "string") p = await g(`payment:${p}`);
  let user = await g(`user:${p.uid}`);

  try {
    let r = await got
      .post(
        `https://${user.shopifyStore}.myshopify.com/admin/api/2023-07/graphql.json`,
        {
          headers: {
            "Content-Type": "application/json",
            "X-Shopify-Access-Token": user.shopifyToken,
          },
          json: {
            query,
            variables: { input: { id: `gid://shopify/Order/${id}` } },
          },
        },
      )
      .json();

    res.send(r);
  } catch (e) {
    err("problem marking shopify order as paid", e.message);
  }
};