Skip to content

Commit

Permalink
feat(apple): store template version during registration (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahna-ashina committed Sep 8, 2022
1 parent beb8718 commit 97bcfa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server/db-migrations/0.8.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
delete from registrations;
alter table registrations add column template_version int not null;
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobile-passport",
"version": "0.7.0",
"version": "0.8.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { config } from '../../../../../../../../utils/Config'
import { supabase } from '../../../../../../../../utils/SupabaseClient'

/**
Expand Down Expand Up @@ -57,6 +58,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
.from('registrations')
.insert([{
device_library_identifier: deviceLibraryIdentifier,
template_version: config.appleTemplateVersion,
serial_number: serialNumber,
push_token: pushToken
}])
Expand Down

0 comments on commit 97bcfa3

Please sign in to comment.