Closed jeffzheng13 closed 8 months ago
Make sure issue is not closed or just reopen when you merge.
Crash occurred when signing in -
Expected a value of type 'int?', but got one of type 'String'
Relevant stack frame -
Lost-At-Pitt/packages/lost_found_steelhacks/data/item.dart.lib.js 82:254 fromFirestore
Lost-At-Pitt/packages/lost_found_steelhacks/pages/signup_page.dart.lib.js 3170:31 getItems
Lost-At-Pitt/packages/lost_found_steelhacks/pages/signup_page.dart.lib.js 3148:32 <fn>
Lost-At-Pitt/packages/multiple_stream_builder/src/stream_builder_2.dart.lib.js 206:25 <fn>
Something with the type of the uid?? I'm not sure
Also probably want to also set the first name, last name and default location as part of this (could just default the location to Pitt coordinates for now), could we add that? @jeffzheng13
Crash occurred when signing in -
Expected a value of type 'int?', but got one of type 'String'
Issue with picture being stored as an int in the database. Changed the default to store as a string which makes more sense. Looking into changing the picture to be stored as a reference but currently it just shows image path stored.
Quick little add to app logic when user is created that adds an entry to Firestore as well and not just Firebase Auth, also for accounts that already exist but don't have an entry we add one. Entry in database will include user id and user email. Let me know if we want to store first and last name or any other details in these documents @tbeidlershenk.