[go: nahoru, domu]

Skip to content

Commit

Permalink
I think this is my final form
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Feb 26, 2024
1 parent 0f4e2cf commit c3e738d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/WarriorHappy/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "WarriorHappy",
"slug": "WarriorHappy",
"version": "3.2.0",
"version": "3.2.1",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
Expand Down
2 changes: 1 addition & 1 deletion apps/WarriorHappy/ios/WarriorHappy/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>3.2.0</string>
<string>3.2.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion apps/WarriorHappy/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "warriorhappy",
"main": "index.ts",
"version": "3.2.0",
"version": "3.2.1",
"scripts": {
"start": "expo start",
"android": "expo run:android",
Expand Down
8 changes: 6 additions & 2 deletions apps/WarriorHappy/src/app/match/[matchId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export default function Match() {
onSuccess: (data, variables, context) => {
console.log("data", data, variables, context);

utils.scouting.getMatchLog.setData(key, [variables]);
utils.scouting.getMatchLog.setData(key, [
{
event_log: variables.eventLog,
},
]);
// utils.scouting.getMatchLog.invalidateQuery();
},
onError: (error, variables, context) => {
Expand Down Expand Up @@ -82,7 +86,7 @@ export default function Match() {
// </SafeAreaView>
// );
// }
const godlyHistory = data?.[0]?.eventLog as {
const godlyHistory = data?.[0]?.event_log as {
auto: UltimateHistory;
teleop: UltimateHistory;
endgame: UltimateHistory;
Expand Down
1 change: 0 additions & 1 deletion packages/api/src/router/scouting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export const scoutingRouter = createTRPCRouter({
const { data: assignments, error } = await ctx.supabase
.from("assignments")
.select("event_log")

.eq("match", input.matchKey)
.eq("team", input.team);
if (error !== null) {
Expand Down

0 comments on commit c3e738d

Please sign in to comment.