@blackcode_sa/metaestetics-api 1.7.8 → 1.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
- package/src/services/user.service.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -4990,6 +4990,9 @@ var UserService = class extends BaseService {
|
|
|
4990
4990
|
lastLoginAt: (0, import_firestore17.serverTimestamp)()
|
|
4991
4991
|
};
|
|
4992
4992
|
await (0, import_firestore17.setDoc)((0, import_firestore17.doc)(this.db, USERS_COLLECTION, userData.uid), userData);
|
|
4993
|
+
if (options == null ? void 0 : options.skipProfileCreation) {
|
|
4994
|
+
return this.getUserById(userData.uid);
|
|
4995
|
+
}
|
|
4993
4996
|
const profiles = await this.createProfilesForRoles(
|
|
4994
4997
|
userData.uid,
|
|
4995
4998
|
roles,
|
package/dist/index.mjs
CHANGED
|
@@ -4883,6 +4883,9 @@ var UserService = class extends BaseService {
|
|
|
4883
4883
|
lastLoginAt: serverTimestamp10()
|
|
4884
4884
|
};
|
|
4885
4885
|
await setDoc8(doc9(this.db, USERS_COLLECTION, userData.uid), userData);
|
|
4886
|
+
if (options == null ? void 0 : options.skipProfileCreation) {
|
|
4887
|
+
return this.getUserById(userData.uid);
|
|
4888
|
+
}
|
|
4886
4889
|
const profiles = await this.createProfilesForRoles(
|
|
4887
4890
|
userData.uid,
|
|
4888
4891
|
roles,
|
package/package.json
CHANGED
|
@@ -103,6 +103,10 @@ export class UserService extends BaseService {
|
|
|
103
103
|
await setDoc(doc(this.db, USERS_COLLECTION, userData.uid), userData);
|
|
104
104
|
|
|
105
105
|
// Kreiramo odgovarajuće profile na osnovu rola
|
|
106
|
+
if (options?.skipProfileCreation) {
|
|
107
|
+
return this.getUserById(userData.uid);
|
|
108
|
+
}
|
|
109
|
+
|
|
106
110
|
const profiles = await this.createProfilesForRoles(
|
|
107
111
|
userData.uid,
|
|
108
112
|
roles,
|